gotosocial/internal/ap
kim 7af9117e0d [feature + performance] add JSON logging format (#4355)
# Description

Adds JSON logging as an optional alternative log output format. In the process this moves our log formatting itself into a separate subpkg to make it more easily modular, and improves caller name getting with some calling function name caching.

## Checklist

- [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md).
- [x] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat.
- [x] I/we have not leveraged AI to create the proposed changes.
- [x] I/we have performed a self-review of added code.
- [x] I/we have written code that is legible and maintainable by others.
- [x] I/we have commented the added code, particularly in hard-to-understand areas.
- [x] I/we have made any necessary changes to documentation.
- [ ] I/we have added tests that cover new code.
- [x] I/we have run tests and they pass locally with the changes.
- [x] I/we have run `go fmt ./...` and `golangci-lint run`.

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4355
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
2025-08-09 16:23:00 +02:00
..
activitystreams.go [chore] Move deps to code.superseriousbusiness.org (#4054) 2025-04-25 15:15:36 +02:00
activitystreams_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
ap_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
collections.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
collections_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
extract.go [feature + performance] add JSON logging format (#4355) 2025-08-09 16:23:00 +02:00
extractattachments_test.go [bugfix] Update GetURL to extract url from Link objects with href (#4249) 2025-06-09 12:32:00 +02:00
extractcontent_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
extractemojis_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
extractfocus_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
extracthashtags_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
extractmentions_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
extractpolicy_test.go [chore] Update interactionPolicy sub-policy parsing in line with documented defaults (#4229) 2025-06-10 14:29:42 +02:00
extractpubkey_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
extractsensitive_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
extractvisibility_test.go [chore] Rewrite all remaining Github links 2025-04-27 13:40:22 +02:00
interfaces.go [feature] Use hidesToPublicFromUnauthedWeb and hidesCcPublicFromUnauthedWeb properties for web visibility of statuses (#4315) 2025-07-09 16:50:25 +02:00
interfaces_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
normalize.go [chore] Deprecate with_approval, always (client API), approvalRequired, always (fedi API) (#4173) 2025-05-13 14:48:11 +00:00
normalize_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
properties.go [feature] Use hidesToPublicFromUnauthedWeb and hidesCcPublicFromUnauthedWeb properties for web visibility of statuses (#4315) 2025-07-09 16:50:25 +02:00
properties_test.go [bugfix] Update GetURL to extract url from Link objects with href (#4249) 2025-06-09 12:32:00 +02:00
resolve.go [chore] Rewrite all remaining Github links 2025-04-27 13:40:22 +02:00
resolve_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
serialize.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
util.go [chore] Move deps to code.superseriousbusiness.org (#4054) 2025-04-25 15:15:36 +02:00