Files
AynaLivePlayer/config/config_log.go
2022-11-28 18:39:12 -08:00

26 lines
444 B
Go

package config
import "github.com/sirupsen/logrus"
type _LogConfig struct {
Path string
Level logrus.Level
RedirectStderr bool
}
func (c *_LogConfig) OnLoad() {
}
func (c *_LogConfig) OnSave() {
}
func (c *_LogConfig) Name() string {
return "Log"
}
var Log = &_LogConfig{
Path: "./log.txt",
Level: logrus.InfoLevel,
RedirectStderr: false, // this should be true if it is in production mode.
}