https://github.com/coinrust/slog
https://github.com/coinrust/slog
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/coinrust/slog
- Owner: coinrust
- License: mit
- Created: 2020-07-14T02:48:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T00:35:43.000Z (over 3 years ago)
- Last Synced: 2025-02-23T17:47:16.477Z (over 1 year ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# golog
[](https://godoc.org/github.com/keakon/golog)
[](https://www.travis-ci.org/keakon/golog)
[](https://goreportcard.com/report/github.com/keakon/golog)
## 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
```