mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-13 21:48:30 +08:00
26 lines
444 B
Go
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.
|
|
}
|