- Unstructured
- Leveled
- Customizable output layout
- Rotating by size, date or hour
- Cross platform, tested on Linux, macOS and Windows
- No 3rd party dependancy
- Fast
go get -u github.com/keakon/golog
BenchmarkBufferedFileLogger-8 5000000 294 ns/op 0 B/op 0 allocs/op
BenchmarkDiscardLogger-8 5000000 254 ns/op 0 B/op 0 allocs/op
BenchmarkNopLog-8 2000000000 0.45 ns/op 0 B/op 0 allocs/op
BenchmarkMultiLevels-8 2000000 1000 ns/op 0 B/op 0 allocs/op
Example output of the benchmarks:
[I 2018-11-20 17:05:37 log_test:118] test