mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 21:03:56 +01:00
NewLogger set to display line number
This commit is contained in:
parent
107a1eadac
commit
3f65760739
1 changed files with 3 additions and 2 deletions
|
@ -15,13 +15,14 @@ var (
|
|||
)
|
||||
|
||||
func init() {
|
||||
logger = logs.NewLogger(10000)
|
||||
logger.SetLogger("console", `{"level": 0}`)
|
||||
NewLogger(10000, "console", `{"level": 0}`)
|
||||
}
|
||||
|
||||
func NewLogger(bufLen int64, mode, config string) {
|
||||
Mode, Config = mode, config
|
||||
logger = logs.NewLogger(bufLen)
|
||||
logger.EnableFuncCallDepth(true)
|
||||
logger.SetLogFuncCallDepth(4)
|
||||
logger.SetLogger(mode, config)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue