{"repo":"gookit/slog","free":true,"listed":false,"github":"https://github.com/gookit/slog","clone":"git clone https://github.com/gookit/slog.git","description":"📑 Lightweight, configurable, extensible logging library written in Go. Support multi level, multi outputs and built-in multi file logger, buffers, clean, rotate-file handling.一个易于使用的，轻量级、可配置、可扩展的日志库。支持多个级别，输出到多文件；内置文件日志处理、自动切割、清理、压缩等增强功能","language":"Go","stars":553,"topics":["logging","go-logger","monolog","file-logging","log-processor","formatter","console-logger","rotate-file","logger","logging-library"],"license":"MIT","category":"dev-tools","readme_excerpt":"slog 📑 Lightweight, structured, extensible, configurable logging library written in Golang. Output in console: Features - Simple, directly available without configuration - Support common log level processing. - eg: trace debug info notice warn error fatal panic - Support any extension of Handler Formatter as needed - Supports adding multiple Handler log processing at the same time, outputting logs to different places - Support to custom log message Formatter - Built-in json text two log record formatting Formatter - Support to custom build log messages Handler - The built-in handler.Config handler.Builder can easily and quickly build the desired log handler - Has built-in common log write handler program - console output logs to the console, supports color output - writer output logs to the specified io.Writer - file output log to the specified file, optionally enable buffer to buffer writes - simple output log to the specified file, write directly to the file without buffering - rotate file outputs logs to the specified file, and supports splitting files by time and size, and buffer buffered writing is enabled by default - See ./handler folder for more built-in implementations - Benchmark performance test please see Benchmarks Output logs to file - Support enabling buffer for log writing - Support splitting log files by time and size - Support configuration to compress log files via gzip - Support clean old log files by BackupNum BackupTime rotatefile subpackage - The rota","default_branch":null,"files":null,"tree":[],"storefront":"/r/gookit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gookit/slog/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."}