1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-10 20:30:54 +00:00
Commit Graph

245 Commits

Author SHA1 Message Date
Gabriel Cruz
d8724cb122
Add error returning to writeln 2020-07-06 21:38:47 +02:00
Gabriel Cruz
fc56c562db
Fix logger reconnection 2020-07-06 21:38:47 +02:00
Ming Deng
1c4085e7ea
Update es.go 2020-06-30 10:12:10 +08:00
Ming Deng
2117562113
Update es.go 2020-06-30 10:09:36 +08:00
Ming Deng
1f9da8d75b Fix ES bug 2020-06-29 22:25:22 +08:00
Ming Deng
de51bd28d7 Fix ES index problem 2020-06-28 21:12:12 +08:00
Ming Deng
96658121dc
Merge pull request #3818 from dbt4516/develop
Get the real location of the log directory before using filepath.Walk function when remove old logs
2020-06-23 21:17:14 +08:00
flycash
ce0e7525ad Fix ES client 2020-06-06 20:14:01 +08:00
huija
b879a07b3a avoid panic: send on closed channel after closing logger. 2020-06-04 14:52:54 +08:00
dbt4516
b3ae5d4ac6
Update file.go
According to issue#4759 (https://github.com/golang/go/issues/4759) filepath.Walk function in golang cannot handle symbolic path, meanwhile symbolic path for log directory is pretty common used. In such scenario this deleteOldLog function will fail without any error log. Get the real location of the log directory before using walk function can fix this.
2019-10-09 15:53:22 +08:00
wanghz
77fc8e4e38 According to issue#4759 (https://github.com/golang/go/issues/4759) filepath.Walk function in golang cannot handle symbolic path, meanwhile symbolic path for log directory is pretty common used. In such scenario this deleteOldLog function will fail without any error log. Get the real location of the log directory before using walk function can fix this. 2019-10-09 15:33:38 +08:00
JessonChan
4564e9810c logger_test imported and not used: "bytes" 2019-03-12 16:36:00 +08:00
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