edb1c52dee
fix function changes
2019-01-02 17:01:46 +08:00
24215fb3eb
update dependency
2019-01-02 15:37:41 +08:00
046cb248e0
edit test case
2018-07-26 15:08:14 +08:00
31c746d9d7
fix all confict
2018-07-26 14:34:25 +08:00
38a2f32252
fix one confict
2018-07-26 14:29:26 +08:00
96dffcd27f
Merge pull request #3105 from ckahi/hotfix_log_dir
...
auto create log dir
2018-07-20 15:32:42 +08:00
2c779a4287
Merge pull request #3141 from gadelkareem/patch-2
...
Improve access log
2018-07-20 15:20:15 +08:00
67a6b8723c
Merge pull request #3146 from Wang-Kai/master
...
Add code style for logs README
2018-07-20 15:17:31 +08:00
8f6bce3b87
fix test case
2018-07-20 14:26:43 +08:00
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
6b3b8607a0
Merge branch 'develop' into develop
2018-06-23 22:43:45 +08:00
b21c59ee70
Merge pull request #3206 from whilei/gofmt-2018-Jun-17-00-39
...
gofmt
2018-06-23 22:38:07 +08:00
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
b80b7b06fc
Update: Redundant semicolon disableEscapeHTML
2018-06-14 11:55:07 +08:00
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
1fd7fa5df7
make example runable
2018-05-03 22:04:49 +08:00
0f73050567
add code style for logs README
2018-05-03 12:05:59 +08:00
a40899e6be
Merge pull request #3145 from gadelkareem/develop
...
Allow log prefix
2018-05-03 11:27:50 +08:00
a9a15e2c54
Allow log prefix
2018-05-02 00:24:09 +02:00
896c258e44
Log redirects and abort after redirect
2018-04-30 17:48:01 +02:00
8e61a6a6de
Allow access log regardless of the log level
2018-04-28 17:15:19 +02:00
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
6db9ad7002
auto create log dir
2018-04-04 15:59:52 +08:00
21fe2d519e
fix the issue #3065
2018-02-20 17:40:18 +09:00
1a42154c64
add file test
2017-12-20 17:54:40 +08:00
e81cca304b
add file test
2017-12-20 16:19:58 +08:00
07aa97aa9a
add hourly rotate file.go
2017-12-20 15:56:36 +08:00
84443b9c05
Fix #2975
...
修复AccessLog输出会多换一行的bug
2017-12-12 12:21:55 +08:00
4613acd88e
update log.go add GetLevel Function to Log
2017-12-08 15:35:12 +08:00
df37739c7d
fix golint comments
2017-11-25 19:18:37 +02:00
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
bebd2c469d
Remove typo
2017-09-13 22:15:40 +02:00
d15e66a4ff
check if SetEscapeHTML exists instead of checking Go version
2017-09-13 22:14:41 +02:00
9fef2f2eb4
Do not escape html if Golang version < 1.7
2017-09-13 03:09:53 +02:00
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
b9117e2ff1
add millisecond to timestamp in log output
2017-08-04 00:11:59 +08:00
31b2b21dbc
Merge branch 'master' of https://github.com/jialijelly/beego
2017-06-27 10:48:52 +08:00
338a23a12b
Merge branch 'master' of https://github.com/jialijelly/beego
2017-06-22 19:18:34 +08:00
16b5a11484
Merge branch 'master' of https://github.com/jialijelly/beego
2017-06-22 18:55:25 +08:00
547fbce86c
Merge branch 'master' of https://github.com/jialijelly/beego
2017-06-22 18:53:29 +08:00
5a2eea07cb
Provide permission to access old log files to everyone
2017-06-22 18:51:52 +08:00
0ea34fff27
Provide permission to access old log files to everyone
2017-06-02 10:56:55 +08:00
a91e2e9950
add golint check and fix all golints
2017-04-30 22:41:23 +08:00
aa8f7bc146
fix ineffectual
2017-04-28 22:36:28 +08:00
3e29078f68
add check ineffect and gofmt
2017-04-28 21:38:08 +08:00
bf6bd6b292
Fixes #2587
...
Fixes warnings and errors raised by gometalinter and gosimple.
2017-04-23 19:19:05 +02:00
453691728a
gofmt simplify
2017-04-20 10:56:09 +08:00
405c170d45
Merge pull request #2556 from zjjott/master
...
fix: log mode should be 0440 should not be 440
2017-04-10 21:14:34 +08:00
932019770d
fix: log mode 0440 should not be 440
2017-04-10 17:37:55 +08:00