Commit graph

4 commits

Author SHA1 Message Date
afcc54c831
BREAKING CHANGE: Remodelled logging setup
- other.ConfigureLoggingFromCliArgs has been renamed to
  other.ConfigureLogging
- The -logfile cli argument has been removed and replaced with an
  argument to other.ConfigureLogging. This argument takes a pointer to a
  string or nil. If it's a valid pointer, it's used just like the
  -logfile cli flag before
- The logfile, if requested via the previously mentioned parameter, can
  now be rotated by calling the returned function. If no logfile is
  specified, the returned function does nothing
2025-03-24 08:39:04 +01:00
0a0c185c06 Swap order of logging setup
Fixes unformatted logging output at beginning
2025-02-03 14:26:56 +01:00
c6860b4a3a Fix wrong var name 2024-12-30 14:44:11 +01:00
40d31bc53f Add zerolog boilerplate helpers
Includes 3 cli vars ("loglevel", "logjson", "logfile")
One public function to configure the global zerolog handler based on
those arguments
2024-12-30 14:25:25 +01:00