mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-17 17:34:39 +08:00
refactor: standardize code comments
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package logger
|
||||
|
||||
// Config 日志配置(简化版)
|
||||
// Config is the logger configuration (simplified version)
|
||||
type Config struct {
|
||||
Level string `json:"level"` // 日志级别: debug, info, warn, error (默认: info)
|
||||
Level string `json:"level"` // Log level: debug, info, warn, error (default: info)
|
||||
}
|
||||
|
||||
// SetDefaults 设置默认值
|
||||
// SetDefaults sets default values
|
||||
func (c *Config) SetDefaults() {
|
||||
if c.Level == "" {
|
||||
c.Level = "info"
|
||||
|
||||
Reference in New Issue
Block a user