{"repo":"phuslu/log","free":true,"listed":false,"github":"https://github.com/phuslu/log","clone":"git clone https://github.com/phuslu/log.git","description":"Fastest structured logging","language":"Go","stars":869,"topics":["structured-logging","json","golang","logging","log","logger","slog"],"license":"MIT","category":"analytics","readme_excerpt":"phuslog - Fastest structured logging [![godoc][godoc-img]][godoc] [![goreport][report-img]][report] [![build][build-img]][build] ![stability-stable][stability-img] Features Dependency Free Clean API Comprehensive Writers - IOWriter , io.Writer wrapper - ConsoleWriter , colorful & formatting - FileWriter , rotating & effective - AsyncWriter , asynchronously & performant - MultiLevelWriter , multiple level dispatch - SyslogWriter , memory efficient syslog - JournalWriter , linux journal logging - EventlogWriter , windows eventlog logging Stdlib Interoperability - Logger.Std , transform to std log instances - Logger.Slog , transform to slog instances - SlogNewJSONHandler , drop-in replacement of slog.NewJSONHandler Utility Functions - Goid() , the goroutine id matches stack trace - NewXID() , create a tracing id - Fastrandn(n uint32) , fast pseudorandom uint32 in [0,n) - IsTerminal(fd uintptr) , isatty for golang - Printf(fmt string, a ...any) , printf logging Extreme Performance - [Significantly faster][high-performance] than all other json loggers. Interfaces Logger ConsoleWriter FileWriter Highlights : - FileWriter uses a symlink to point to the current log file with a timestamp, instead of renaming for rotation. On Windows, this may require administrator privileges. - FileWriter .Rotate() method does not rotate logs based on broad TimeFormat values (e.g., daily or monthly) until the file reaches its MaxSize . - FileWriter combined with AsyncWriter can maximize performance an","default_branch":null,"files":null,"tree":[],"storefront":"/r/phuslu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phuslu/log/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}