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
814b673e
Commit
814b673e
authored
Mar 30, 2016
by
JessonChan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a comment to the future bug
parent
99436a75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
logger.go
logs/logger.go
+7
-5
No files found.
logs/logger.go
View file @
814b673e
...
@@ -52,19 +52,21 @@ const s2 = `012345678901234567890123456789012345678901234567890123456789`
...
@@ -52,19 +52,21 @@ const s2 = `012345678901234567890123456789012345678901234567890123456789`
func
formatTimeHeader
(
when
time
.
Time
)
([]
byte
,
int
)
{
func
formatTimeHeader
(
when
time
.
Time
)
([]
byte
,
int
)
{
y
,
mo
,
d
:=
when
.
Date
()
y
,
mo
,
d
:=
when
.
Date
()
h
,
mi
,
s
:=
when
.
Clock
()
h
,
mi
,
s
:=
when
.
Clock
()
//len("2006/01/02 15:0
3:04
")==20
//len("2006/01/02 15:0
4:05
")==20
var
buf
[
20
]
byte
var
buf
[
20
]
byte
//change to '3' after 984 years, LOL
buf
[
0
]
=
'2'
buf
[
0
]
=
'2'
//change to '1' after 84 years, LOL
buf
[
1
]
=
'0'
buf
[
1
]
=
'0'
buf
[
2
]
=
y1
[
y
-
2000
]
buf
[
2
]
=
y1
[
y
-
2000
]
buf
[
3
]
=
y2
[
y
-
2000
]
buf
[
3
]
=
y2
[
y
-
2000
]
buf
[
4
]
=
'/'
buf
[
4
]
=
'/'
buf
[
5
]
=
mo1
[
mo
]
buf
[
5
]
=
mo1
[
mo
-
1
]
buf
[
6
]
=
mo2
[
mo
]
buf
[
6
]
=
mo2
[
mo
-
1
]
buf
[
7
]
=
'/'
buf
[
7
]
=
'/'
buf
[
8
]
=
d1
[
d
]
buf
[
8
]
=
d1
[
d
-
1
]
buf
[
9
]
=
d2
[
d
]
buf
[
9
]
=
d2
[
d
-
1
]
buf
[
10
]
=
' '
buf
[
10
]
=
' '
buf
[
11
]
=
h1
[
h
]
buf
[
11
]
=
h1
[
h
]
buf
[
12
]
=
h2
[
h
]
buf
[
12
]
=
h2
[
h
]
...
...
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