Commit graph

10 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
59539c7e97
Add error formatter and docs 2025-03-04 13:57:51 +01:00
18bf623114
Restructure all http related files
Moving all http related functions and helpers into a new http submodule
2025-03-04 13:56:57 +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
9a7f26995f Update HttpErr
It now no longer has to go through json encoding and uses a hardcoded
string instead. Also clears the one location where an error could occur
2024-10-13 13:27:16 +02:00
bd60c842e9
Add basic http error formatter 2024-09-28 12:37:06 +02:00
83e935df8a Add func to get the pointer to some value 2024-07-07 16:00:08 +02:00
mStar aka a person
ae2da5efa5 Moved stuff, added Contains to sliceutils 2024-01-17 09:47:33 +01:00