Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
2f6fc3f6
Commit
2f6fc3f6
authored
Oct 13, 2016
by
astaxie
Committed by
GitHub
Oct 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2213 from axyu/develop
fix log func call depth bug
parents
84310b16
dfa9e039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
log.go
logs/log.go
+12
-3
No files found.
logs/log.go
View file @
2f6fc3f6
...
...
@@ -380,7 +380,10 @@ func (bl *BeeLogger) Error(format string, v ...interface{}) {
// Warning Log WARNING level message.
func
(
bl
*
BeeLogger
)
Warning
(
format
string
,
v
...
interface
{})
{
bl
.
Warn
(
format
,
v
...
)
if
LevelWarn
>
bl
.
level
{
return
}
bl
.
writeMsg
(
LevelWarn
,
format
,
v
...
)
}
// Notice Log NOTICE level message.
...
...
@@ -393,7 +396,10 @@ func (bl *BeeLogger) Notice(format string, v ...interface{}) {
// Informational Log INFORMATIONAL level message.
func
(
bl
*
BeeLogger
)
Informational
(
format
string
,
v
...
interface
{})
{
bl
.
Info
(
format
,
v
...
)
if
LevelInfo
>
bl
.
level
{
return
}
bl
.
writeMsg
(
LevelInfo
,
format
,
v
...
)
}
// Debug Log DEBUG level message.
...
...
@@ -425,7 +431,10 @@ func (bl *BeeLogger) Info(format string, v ...interface{}) {
// Trace Log TRACE level message.
// compatibility alias for Debug()
func
(
bl
*
BeeLogger
)
Trace
(
format
string
,
v
...
interface
{})
{
bl
.
Debug
(
format
,
v
...
)
if
LevelDebug
>
bl
.
level
{
return
}
bl
.
writeMsg
(
LevelDebug
,
format
,
v
...
)
}
// Flush flush all chan data.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment