1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 03:40:55 +00:00

Merge pull request #2970 from gcy3y/master

update log.go add GetLevel Function to Log
This commit is contained in:
astaxie 2017-12-10 20:26:46 +08:00 committed by GitHub
commit 33be6803a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,6 +305,11 @@ func (bl *BeeLogger) SetLevel(l int) {
bl.level = l bl.level = l
} }
// GetLevel Get Current log message level.
func (bl *BeeLogger) GetLevel() int {
return bl.level
}
// SetLogFuncCallDepth set log funcCallDepth // SetLogFuncCallDepth set log funcCallDepth
func (bl *BeeLogger) SetLogFuncCallDepth(d int) { func (bl *BeeLogger) SetLogFuncCallDepth(d int) {
bl.loggerFuncCallDepth = d bl.loggerFuncCallDepth = d