# go-logs **Repository Path**: zhd--zhd_admin/go-logs ## Basic Information - **Project Name**: go-logs - **Description**: 日志日志日志日志日志日志日志 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-28 - **Last Updated**: 2026-01-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Go-Logs ### 安装 ```shell go env -w GOPRIVATE=gitee.com go get -u gitee.com/zhd--zhd_admin/go-logs ``` ### 配置文件 #### 文件位置 config/log.json ```json { "level": "info", "type": "console", "file": "logs/log/error.log", "max_size": 2, "max_age": 30, "max_backups": 10, "compress": true } ``` ### 示例 ```go package main func main() { gologs.InitLogger() gologs.SugarLogger.Info("test info") gologs.SugarLogger.Error("test error") } ```