feat: Add configurable global log level via env
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
# 可选值: debug(开发模式,有详细日志), release(生产模式,禁用Swagger文档)
|
||||
GIN_MODE=release
|
||||
|
||||
# 日志级别,可选值:debug, info, warn, error, fatal,默认为debug
|
||||
# LOG_LEVEL=debug
|
||||
|
||||
# 禁止新用户注册(生产环境建议设为 true)
|
||||
DISABLE_REGISTRATION=false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user