gotosocial/vendor/codeberg.org/gruf/go-logger
tobi 67ac8db190
Upstep Go dependencies (#340)
* Upstep Go dependencies

* tiny linter fix

* Tidy
2021-12-12 15:47:51 +01:00
..
clock.go Update dependencies (#333) 2021-11-27 15:26:58 +01:00
default.go Upstep Go dependencies (#340) 2021-12-12 15:47:51 +01:00
entry.go Upstep Go dependencies (#340) 2021-12-12 15:47:51 +01:00
format.go Upstep Go dependencies (#340) 2021-12-12 15:47:51 +01:00
format_text.go Upstep Go dependencies (#340) 2021-12-12 15:47:51 +01:00
hook.go update dependencies (#296) 2021-11-13 12:29:08 +01:00
level.go Upstep Go dependencies (#340) 2021-12-12 15:47:51 +01:00
LICENSE update dependencies (#296) 2021-11-13 12:29:08 +01:00
logger.go Upstep Go dependencies (#340) 2021-12-12 15:47:51 +01:00
README.md update dependencies (#296) 2021-11-13 12:29:08 +01:00
writer.go Update dependencies (#333) 2021-11-27 15:26:58 +01:00

Fast levelled logging package with customizable formatting.

Supports logging in 2 modes:

  • no locks, fastest possible logging, no guarantees for io.Writer thread safety
  • mutex locks during writes, still far faster than standard library logger

Running without locks isn't likely to cause you any issues*, but if it does, you can wrap your io.Writer using AddSafety() when instantiating your new Logger. Even when running the benchmarks, this library has no printing issues without locks, so in most cases you'll be fine, but the safety is there if you need it.

*most logging libraries advertising high speeds are likely not performing mutex locks, which is why with this library you have the option to opt-in/out of them.