import ( "github.com/astaxie/beego/logs" ) func main() { beeLogger := logs.NewLogger(10000) // configure the logger beeLogger.SetLogger("file", `{"filename":"test.log"}`) }
beeLogger.Emergency("System in emergency state") beeLogger.Alert("System alert") beeLogger.Critical("Critical error") beeLogger.Error("An error occurred") beeLogger.Warning("Warning message") beeLogger.Notice("A notice message") beeLogger.Info("Information message") beeLogger.Debug("Debug message")
beeLogger.SetLogger("file", `{"filename":"test.log"}`)
beeLogger.SetLogger("console", "")Package library: github.com/astaxie/beego/logs