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
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
takeo-lvgs
21fe2d519e
fix the issue #3065
2018-02-20 17:40:18 +09: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
Jia Li Ong
547fbce86c
Merge branch 'master' of https://github.com/jialijelly/beego
2017-06-22 18:53:29 +08:00
Jia Li Ong
5a2eea07cb
Provide permission to access old log files to everyone
2017-06-22 18:51:52 +08:00
Jia Li Ong
0ea34fff27
Provide permission to access old log files to everyone
2017-06-02 10:56:55 +08:00
astaxie
a91e2e9950
add golint check and fix all golints
2017-04-30 22:41:23 +08:00
astaxie
aa8f7bc146
fix ineffectual
2017-04-28 22:36:28 +08:00
astaxie
3e29078f68
add check ineffect and gofmt
2017-04-28 21:38:08 +08:00
Faissal Elamraoui
bf6bd6b292
Fixes #2587
...
Fixes warnings and errors raised by gometalinter and gosimple.
2017-04-23 19:19:05 +02:00
astaxie
453691728a
gofmt simplify
2017-04-20 10:56:09 +08:00
astaxie
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
zjjott
932019770d
fix: log mode 0440 should not be 440
2017-04-10 17:37:55 +08:00
astaxie
ae0a75c464
console debug use diffrent color
2017-03-21 23:55:40 +08:00
astaxie
d956444965
Merge branch 'develop' into add-gosimple
2017-03-18 11:20:30 +08:00
Sergey Lanzman
37c1ffc57a
add go simple support
2017-03-17 20:22:20 +02:00
Sergey Lanzman
856fde28dc
add unconverted support
2017-03-17 19:45:30 +02:00
洪亮
09c405990c
Add Aliyun Logger
2017-01-04 15:53:20 +08:00
astaxie
eba6afd6fb
Merge pull request #2307 from CodeJuan/master
...
set perm of rotated log to 440
2016-12-06 15:10:00 +08:00
codejuan
b788d74fd1
set perm of rotated log to 440
2016-12-06 12:44:00 +08:00
cat2neat
9ff88f0b35
Fix http body may not be closed
2016-11-20 05:16:52 +00:00
yuanxuan
dfa9e03980
fix log func call depth bug
2016-10-09 15:19:21 +08:00
Phil
fcd8a2024e
Add jianliao and slack log adapter
2016-09-08 17:21:11 +08:00
Phil
30661472c8
Fix the typo
2016-09-07 13:33:11 +08:00
astaxie
227678c2ef
Set SetLogFuncCallDepth default to 4
2016-08-23 23:48:47 +08:00
chenlei106
00e986cd3b
log output format improvement
...
move log level info ahead to filename info, better readability
2016-08-23 16:16:57 +08:00