mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:30:56 +00:00
log to Stderr
This commit is contained in:
parent
cb0c006cfa
commit
4cd2408248
@ -262,7 +262,7 @@ func parseConfig(appConfigPath string) (err error) {
|
|||||||
for adaptor, config := range BConfig.Log.Outputs {
|
for adaptor, config := range BConfig.Log.Outputs {
|
||||||
err = logs.SetLogger(adaptor, config)
|
err = logs.SetLogger(adaptor, config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("%s with the config `%s` got err:%s\n", adaptor, config, err)
|
fmt.Fprintln(os.Stderr, "%s with the config `%s` got err:%s\n", adaptor, config, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logs.SetLogFuncCall(BConfig.Log.FileLineNum)
|
logs.SetLogFuncCall(BConfig.Log.FileLineNum)
|
||||||
|
Loading…
Reference in New Issue
Block a user