mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 23:29:12 +01:00
012a1e0497
Provide a bit more journald integration. Specifically: - support emission of printk-style log level prefixes, documented in [`sd-daemon`(3)](https://man7.org/linux/man-pages/man3/sd-daemon.3.html#DESCRIPTION), that allow journald to automatically annotate stderr log lines with their level; - add a new "journaldflags" item that is supposed to be used in place of "stdflags" when under journald to reduce log clutter (i. e. strip date/time info to avoid duplication, and use log level prefixes instead of textual log levels); - detect whether stderr and/or stdout are attached to journald by parsing `$JOURNAL_STREAM` environment variable and adjust console logger defaults accordingly. <!--start release-notes-assistant--> ## Draft release notes <!--URL:https://codeberg.org/forgejo/forgejo--> - Features - [PR](https://codeberg.org/forgejo/forgejo/pulls/2869): <!--number 2869 --><!--line 0 --><!--description bG9nOiBqb3VybmFsZCBpbnRlZ3JhdGlvbg==-->log: journald integration<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2869 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: Ivan Shapovalov <intelfx@intelfx.name> Co-committed-by: Ivan Shapovalov <intelfx@intelfx.name> |
||
---|---|---|
.. | ||
color.go | ||
color_console.go | ||
color_console_other.go | ||
color_console_windows.go | ||
color_router.go | ||
event_format.go | ||
event_format_test.go | ||
event_writer.go | ||
event_writer_base.go | ||
event_writer_conn.go | ||
event_writer_conn_test.go | ||
event_writer_console.go | ||
event_writer_file.go | ||
flags.go | ||
flags_test.go | ||
groutinelabel.go | ||
groutinelabel_test.go | ||
init.go | ||
level.go | ||
level_test.go | ||
logger.go | ||
logger_global.go | ||
logger_impl.go | ||
logger_test.go | ||
manager.go | ||
manager_test.go | ||
misc.go | ||
stack.go |