mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 15:40:55 +00:00
function change
This commit is contained in:
parent
a6c1377f91
commit
0fb4a8af24
@ -511,8 +511,8 @@ func SetLogFuncCall(b bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SetLogger sets a new logger.
|
// SetLogger sets a new logger.
|
||||||
func SetLogger(adaptername string, config string) error {
|
func SetLogger(adapter string, config ...string) error {
|
||||||
err := beeLogger.SetLogger(adaptername, config)
|
err := beeLogger.SetLogger(adapter, config...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user