JessonChan
44a1a8f6be
println is builtin function
2019-03-12 15:51:43 +08:00
JessonChan
9cecb22170
NewAnsiColorWriter remove
2019-03-12 15:13:54 +08:00
JessonChan
7693502aaa
logAdapter is more readable
2019-03-12 13:20:13 +08:00
JessonChan
c0fae547e9
remove ansicolor code,import ansicolor package
2019-03-12 12:14:09 +08:00
JessonChan
0ba77a0d87
colorful is the switch to level label
2019-03-12 12:12:59 +08:00
JessonChan
93485df3d2
color should be false by default otherwise the http logger's color would be wrong
2019-03-08 14:42:06 +08:00
JessonChan
121fab61f1
ResetColor function
2019-03-08 12:18:45 +08:00
JessonChan
8432a1c758
better comment for color map
2019-03-08 12:10:57 +08:00
JessonChan
4a5e108527
logger color function refactor,easy to read and run more quickly
2019-03-08 11:50:30 +08:00
JessonChan
6dd5171fdf
logger color function refactor,easy to read and run more quickly
2019-03-08 11:08:39 +08:00
DennisMao
edb1c52dee
fix function changes
2019-01-02 17:01:46 +08:00
DennisMao
24215fb3eb
update dependency
2019-01-02 15:37:41 +08:00
two
046cb248e0
edit test case
2018-07-26 15:08:14 +08:00
two
31c746d9d7
fix all confict
2018-07-26 14:34:25 +08:00
two
38a2f32252
fix one confict
2018-07-26 14:29:26 +08:00
astaxie
96dffcd27f
Merge pull request #3105 from ckahi/hotfix_log_dir
...
auto create log dir
2018-07-20 15:32:42 +08:00
astaxie
2c779a4287
Merge pull request #3141 from gadelkareem/patch-2
...
Improve access log
2018-07-20 15:20:15 +08:00
astaxie
67a6b8723c
Merge pull request #3146 from Wang-Kai/master
...
Add code style for logs README
2018-07-20 15:17:31 +08:00
astaxie
8f6bce3b87
fix test case
2018-07-20 14:26:43 +08:00
astaxie
e5d68aceed
Merge pull request #3185 from kaka89/master
...
Fix defaut value bug, and add config for maxfiles
2018-06-23 22:54:35 +08:00
astaxie
6b3b8607a0
Merge branch 'develop' into develop
2018-06-23 22:43:45 +08:00
astaxie
b21c59ee70
Merge pull request #3206 from whilei/gofmt-2018-Jun-17-00-39
...
gofmt
2018-06-23 22:38:07 +08:00
ia
87ba3f3cd3
all: gofmt
...
Run standard gofmt command on project root.
- go version go1.10.3 darwin/amd64
Signed-off-by: ia <isaac.ardis@gmail.com>
2018-06-17 00:47:51 +02:00
Openset
b80b7b06fc
Update: Redundant semicolon disableEscapeHTML
2018-06-14 11:55:07 +08:00
umasuo
f979050a45
Fix defaut value bug, and add default maxfiles
...
1. add default value for maxlines(100000), maxsize(1 << 28)
2. add maxfiles for configure, just like `maxlines` & maxsize
2018-06-03 23:08:03 +08:00
Wang-Kai
1fd7fa5df7
make example runable
2018-05-03 22:04:49 +08:00
Wang-Kai
0f73050567
add code style for logs README
2018-05-03 12:05:59 +08:00
astaxie
a40899e6be
Merge pull request #3145 from gadelkareem/develop
...
Allow log prefix
2018-05-03 11:27:50 +08:00
Waleed Gadelkareem
a9a15e2c54
Allow log prefix
2018-05-02 00:24:09 +02:00
Waleed Gadelkareem
896c258e44
Log redirects and abort after redirect
2018-04-30 17:48:01 +02:00
Waleed Gadelkareem
8e61a6a6de
Allow access log regardless of the log level
2018-04-28 17:15:19 +02:00
MinJie Gu
2da894d4a7
When log maxSize set big int,FileWrite Init fail
...
example:
beego.SetLogger("multifile", {"filename":"logs/liverelay.log","separate":[ "emergency", "error", "info", "debug"],"maxsize":250000000}).
json: cannot unmarshal number 2.5e+08 into Go value of type int
The err should return and show the developer.
2018-04-06 00:50:35 +08:00
chenkaihui
6db9ad7002
auto create log dir
2018-04-04 15:59:52 +08:00
takeo-lvgs
21fe2d519e
fix the issue #3065
2018-02-20 17:40:18 +09:00
chenxiaonan01
1a42154c64
add file test
2017-12-20 17:54:40 +08:00
chenxiaonan01
e81cca304b
add file test
2017-12-20 16:19:58 +08:00
chenxiaonan01
07aa97aa9a
add hourly rotate file.go
2017-12-20 15:56:36 +08:00
Back Yu
84443b9c05
Fix #2975
...
修复AccessLog输出会多换一行的bug
2017-12-12 12:21:55 +08:00
GuoChunYang
4613acd88e
update log.go add GetLevel Function to Log
2017-12-08 15:35:12 +08:00
BorisBorshevsky
df37739c7d
fix golint comments
2017-11-25 19:18:37 +02:00
astaxie
b7eb3963f5
Merge pull request #2863 from gadelkareem/develop
...
Add JSON or Apache access log formatting option to config: AccessLogsFormat = JSON_FORMAT or APACHE_FORMAT ref #2738
2017-11-19 11:05:12 +08:00
陈培远
80fa51468c
avoid unnecessary read of large log file
...
If w.MaxLines is not set, there is no need to calc large log file’s lines. It may takes more than 10mins to calc a 10G file.
2017-11-07 22:58:39 +08:00
Waleed Gadelkareem
bebd2c469d
Remove typo
2017-09-13 22:15:40 +02:00
Waleed Gadelkareem
d15e66a4ff
check if SetEscapeHTML exists instead of checking Go version
2017-09-13 22:14:41 +02:00
Waleed Gadelkareem
9fef2f2eb4
Do not escape html if Golang version < 1.7
2017-09-13 03:09:53 +02:00
Waleed Gadelkareem
4921014c64
Add JSON or Apache access log formatting option to config: AccessLogsFormat = JSON_FORMAT or APACHE_FORMAT ref #2738
2017-09-13 02:03:46 +02:00
Tao Zhou
b9117e2ff1
add millisecond to timestamp in log output
2017-08-04 00:11:59 +08:00
Jia Li Ong
31b2b21dbc
Merge branch 'master' of https://github.com/jialijelly/beego
2017-06-27 10:48:52 +08:00
Jia Li Ong
338a23a12b
Merge branch 'master' of https://github.com/jialijelly/beego
2017-06-22 19:18:34 +08:00
Jia Li Ong
16b5a11484
Merge branch 'master' of https://github.com/jialijelly/beego
2017-06-22 18:55:25 +08:00