Skip to content

coinrust/slog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 3, 2023
a9a5bb3 · Mar 3, 2023

History

6 Commits
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020
Mar 3, 2023
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020
Jun 17, 2021
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020
Jul 14, 2020

Repository files navigation

golog

GoDoc Build Status Go Report Card

Features

  1. Unstructured
  2. Leveled
  3. Customizable output layout
  4. Rotating by size, date or hour
  5. Cross platform, tested on Linux, macOS and Windows
  6. No 3rd party dependancy
  7. Fast

Installation

go get -u github.com/keakon/golog

Benchmarks

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