2021-01-17 21:46:25 +08:00
|
|
|
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
|
2019-02-20 16:07:11 +08:00
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
|
|
// If a copy of the MIT was not distributed with this file,
|
|
|
|
// You can obtain one at https://github.com/gogf/gf.
|
|
|
|
|
|
|
|
package g
|
|
|
|
|
2020-09-24 23:40:44 +08:00
|
|
|
import (
|
2021-10-11 21:41:56 +08:00
|
|
|
"github.com/gogf/gf/v2/internal/intlog"
|
2020-09-24 23:40:44 +08:00
|
|
|
)
|
|
|
|
|
2021-05-19 09:25:49 +08:00
|
|
|
// SetDebug enables/disables the GoFrame internal logging manually.
|
2020-09-24 23:40:44 +08:00
|
|
|
// Note that this function is not concurrent safe, be aware of the DATA RACE,
|
|
|
|
// which means you should call this function in your boot but not the runtime.
|
|
|
|
func SetDebug(enabled bool) {
|
|
|
|
intlog.SetEnabled(enabled)
|
|
|
|
}
|