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
7f977a0c
Commit
7f977a0c
authored
Aug 20, 2014
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beego: change the colour
parent
aaabeff4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
console.go
logs/console.go
+2
-2
router.go
router.go
+1
-1
No files found.
logs/console.go
View file @
7f977a0c
...
...
@@ -38,8 +38,8 @@ var colors = []Brush{
NewBrush
(
"1;31"
),
// Error red
NewBrush
(
"1;33"
),
// Warning yellow
NewBrush
(
"1;32"
),
// Notice green
NewBrush
(
"1;34"
),
// Informational
green
NewBrush
(
"1;3
0"
),
// Debug black
NewBrush
(
"1;34"
),
// Informational
blue
NewBrush
(
"1;3
4"
),
// Debug blue
}
// ConsoleWriter implements LoggerInterface and writes messages to terminal.
...
...
router.go
View file @
7f977a0c
...
...
@@ -783,7 +783,7 @@ Admin:
}
else
{
devinfo
=
fmt
.
Sprintf
(
"| % -10s | % -40s | % -16s | % -10s |"
,
r
.
Method
,
r
.
URL
.
Path
,
timeend
.
String
(),
"notmatch"
)
}
Info
(
devinfo
)
Debug
(
devinfo
)
}
// Call WriteHeader if status code has been set changed
...
...
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