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
817650aa
Commit
817650aa
authored
Jun 15, 2015
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep the short name for logs
parent
ba1232df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
log.go
logs/log.go
+15
-3
No files found.
logs/log.go
View file @
817650aa
...
@@ -298,21 +298,33 @@ func (bl *BeeLogger) Debug(format string, v ...interface{}) {
...
@@ -298,21 +298,33 @@ func (bl *BeeLogger) Debug(format string, v ...interface{}) {
//
//
// Deprecated: compatibility alias for Warning(), Will be removed in 1.5.0.
// Deprecated: compatibility alias for Warning(), Will be removed in 1.5.0.
func
(
bl
*
BeeLogger
)
Warn
(
format
string
,
v
...
interface
{})
{
func
(
bl
*
BeeLogger
)
Warn
(
format
string
,
v
...
interface
{})
{
bl
.
Warning
(
format
,
v
...
)
if
LevelWarning
>
bl
.
level
{
return
}
msg
:=
fmt
.
Sprintf
(
"[W] "
+
format
,
v
...
)
bl
.
writerMsg
(
LevelWarning
,
msg
)
}
}
// Log INFO level message.
// Log INFO level message.
//
//
// Deprecated: compatibility alias for Informational(), Will be removed in 1.5.0.
// Deprecated: compatibility alias for Informational(), Will be removed in 1.5.0.
func
(
bl
*
BeeLogger
)
Info
(
format
string
,
v
...
interface
{})
{
func
(
bl
*
BeeLogger
)
Info
(
format
string
,
v
...
interface
{})
{
bl
.
Informational
(
format
,
v
...
)
if
LevelInformational
>
bl
.
level
{
return
}
msg
:=
fmt
.
Sprintf
(
"[I] "
+
format
,
v
...
)
bl
.
writerMsg
(
LevelInformational
,
msg
)
}
}
// Log TRACE level message.
// Log TRACE level message.
//
//
// Deprecated: compatibility alias for Debug(), Will be removed in 1.5.0.
// Deprecated: compatibility alias for Debug(), Will be removed in 1.5.0.
func
(
bl
*
BeeLogger
)
Trace
(
format
string
,
v
...
interface
{})
{
func
(
bl
*
BeeLogger
)
Trace
(
format
string
,
v
...
interface
{})
{
bl
.
Debug
(
format
,
v
...
)
if
LevelDebug
>
bl
.
level
{
return
}
msg
:=
fmt
.
Sprintf
(
"[D] "
+
format
,
v
...
)
bl
.
writerMsg
(
LevelDebug
,
msg
)
}
}
// flush all chan data.
// 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