gotosocial/internal/log
kim 19784e381b [performance] more logging tweaks (#4415)
- reduces number of necessary function calls by moving log level checking out of the uninlineable `logf(...)` function and into each of its caller (which are all inlined). this in turn means the log level check is performed in-situ wherever a call to `log.Debug(...)` (etc) is made, reduce unnecessary calls when a certain log level is disabled.
- sets the http.Server{}.ErrorLog to output to our internal logging package (which in turn ensures it gets wrapped in either our logfmt or json log formatting)

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4415
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
2025-09-07 14:47:45 +02:00
..
format [feature + performance] add JSON logging format (#4355) 2025-08-09 16:23:00 +02:00
level [feature + performance] add JSON logging format (#4355) 2025-08-09 16:23:00 +02:00
caller.go [feature + performance] add JSON logging format (#4355) 2025-08-09 16:23:00 +02:00
entry.go [performance] more logging tweaks (#4415) 2025-09-07 14:47:45 +02:00
init.go [feature + performance] add JSON logging format (#4355) 2025-08-09 16:23:00 +02:00
level.go [feature + performance] add JSON logging format (#4355) 2025-08-09 16:23:00 +02:00
log.go [performance] more logging tweaks (#4415) 2025-09-07 14:47:45 +02:00
log_test.go [performance] more logging tweaks (#4415) 2025-09-07 14:47:45 +02:00
pool.go [feature + performance] add JSON logging format (#4355) 2025-08-09 16:23:00 +02:00
std.go [performance] more logging tweaks (#4415) 2025-09-07 14:47:45 +02:00
syslog_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
sysloglongunixgram_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00