rollingwriter alternatives and similar packages
Based on the "Logging" category.
Alternatively, view rollingwriter alternatives based on common mentions on social networks and blogs.
-
spew
Implements a deep pretty printer for Go data structures to aid in debugging -
seelog
Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting. -
logxi
A 12-factor app logger built for performance and happy development -
go-logger
Simple logger for Go programs. Allows custom formats for messages. -
loggo
A logging library for Go. Doesn't use the built in go log standard library, but instead offers a replacement. -
httpretty
Package httpretty prints the HTTP requests you make with Go pretty on your terminal. -
sqldb-logger
A logger for Go SQL database driver without modifying existing *sql.DB stdlib usage. -
ozzo-log
A Go (golang) package providing high-performance asynchronous logging, message filtering by severity and category, and multiple message targets. -
logex
An golang log lib, supports tracking and level, wrap by standard log lib -
gologger
Simple easy to use log lib for go, logs in Colored Cosole, Simple Console, File or Elasticsearch. -
noodlog
🍜 Parametrized JSON logging library in Golang which lets you obfuscate sensitive data and marshal any kind of content. -
mlog
A simple logging module for go, with a rotating file feature and console logging. -
slf
The Structured Logging Facade (SLF) for Go (like SLF4J but structured and for Go) -
journald
Go implementation of systemd Journal's native API for logging -
Kiwi Logs&Context
Fast, structured, with filters and dynamic sinks. No levels. Logger & context keeper for Go language 🥝 It smell like a mushroom. -
slog
The reference implementation of the Structured Logging Facade (SLF) for Go -
logmatic
Colorized logger for Golang with dynamic log level configuration -
gomol
Gomol is a library for structured, multiple-output logging for Go with extensible logging outputs -
kemba
A tiny debug logging tool. Ideal for CLI tools and command applications. Inspired by https://github.com/visionmedia/debug -
go-rethinklogger
Automatically persists all the logs of your Go application inside RethinkDB. -
MrZ's go-logger
:mag: Easy to use, extendable and super fast logging package for Go -
structy/log
A simple to use log system, minimalist but with features for debugging and differentiation of messages
Static code analysis for 29 languages.
Do you think we are missing an alternative of rollingwriter or a related project?
README
RollingWriter

RollingWriter is an auto rotate io.Writer
implementation. It can works well with logger.
Awesome Go popular log helper
New Version v2.0 is comming out! Much more Powerfull and Efficient. Try it by follow the demo
RollingWriter contains 2 separate patrs:
Manager: decide when to rotate the file with policy. RlingPolicy give out the rolling policy
- WithoutRolling: no rolling will happen
- TimeRolling: rolling by time
- VolumeRolling: rolling by file size
IOWriter: impement the io.Writer and do the io write
- Writer: not parallel safe writer
- LockedWriter: parallel safe garented by lock
- AsyncWtiter: parallel safe async writer
- BufferWriter: merge serval write into one
file.Write()
Features
- Auto rotate with multi rotate policies
- Implement go io.Writer, provide parallel safe writer
- Max remain rolling files with auto cleanup
- Easy for user to implement your manager
Benchmark
goos: darwin
goarch: amd64
pkg: github.com/arthurkiller/rollingWriter
BenchmarkWrite-4 300000 5952 ns/op 0 B/op 0 allocs/op
BenchmarkParallelWrite-4 200000 7846 ns/op 0 B/op 0 allocs/op
BenchmarkAsynWrite-4 200000 7917 ns/op 16324 B/op 1 allocs/op
BenchmarkParallelAsynWrite-4 200000 8632 ns/op 12513 B/op 1 allocs/op
BenchmarkLockedWrite-4 200000 5829 ns/op 0 B/op 0 allocs/op
BenchmarkParallelLockedWrite-4 200000 7796 ns/op 0 B/op 0 allocs/op
BenchmarkBufferWrite-4 200000 6943 ns/op 1984 B/op 4 allocs/op
BenchmarkParallelBufferWrite-4 1000000 1026 ns/op 7129 B/op 1 allocs/op
PASS
ok github.com/arthurkiller/rollingWriter 14.867s
Quick Start
writer, err := rollingwriter.NewWriterFromConfig(&config)
if err != nil {
panic(err)
}
writer.Write([]byte("hello, world"))
Want more? View demo
for more details.
Any suggestion or new feature inneed, please put up an issue