Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2d94f779
authored
2014-08-26 14:03:03 +0200
by
Francois
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Type in the printout of each level's prefix
1 parent
2fe55970
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
logs/log.go
logs/log.go
View file @
2d94f77
...
...
@@ -204,13 +204,13 @@ func (bl *BeeLogger) startLogger() {
// Log EMERGENCY level message.
func
(
bl
*
BeeLogger
)
Emergency
(
format
string
,
v
...
interface
{})
{
msg
:=
fmt
.
Sprintf
(
"[
D
] "
+
format
,
v
...
)
msg
:=
fmt
.
Sprintf
(
"[
M
] "
+
format
,
v
...
)
bl
.
writerMsg
(
LevelEmergency
,
msg
)
}
// Log ALERT level message.
func
(
bl
*
BeeLogger
)
Alert
(
format
string
,
v
...
interface
{})
{
msg
:=
fmt
.
Sprintf
(
"[
D
] "
+
format
,
v
...
)
msg
:=
fmt
.
Sprintf
(
"[
A
] "
+
format
,
v
...
)
bl
.
writerMsg
(
LevelAlert
,
msg
)
}
...
...
@@ -234,7 +234,7 @@ func (bl *BeeLogger) Warning(format string, v ...interface{}) {
// Log NOTICE level message.
func
(
bl
*
BeeLogger
)
Notice
(
format
string
,
v
...
interface
{})
{
msg
:=
fmt
.
Sprintf
(
"[
W
] "
+
format
,
v
...
)
msg
:=
fmt
.
Sprintf
(
"[
N
] "
+
format
,
v
...
)
bl
.
writerMsg
(
LevelNotice
,
msg
)
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment