feat: log support change level dynamically
sysulq opened this issue · 7 comments
sysulq commented
Issue Description
Type: feature request
Describe what feature you want
Additional context
Add any other context or screenshots about the feature request here.
ywanbing commented
怎么动态改变?通过网络,还是监听配置文件,还是信号?
ywanbing commented
ywanbing commented
好的
ywanbing commented
// Config ...
type Config struct {
...
logger *xlog.Logger
}
创建
logger: xlog.Jupiter().Named(ecode.ModGrpcServer),
当前拿不到到运行时的 logger 对象
是需要把所有的日志对象都注册到一个统一的地方来进行管理嘛?
是否还有什么其他更好的方式?
github-actions commented
Stale issue message