David Bariod
2067ea4241
Merge pull request #874 from sirupsen/fieldErrorBugFix
...
do not clear error formatting informative field
2018-12-15 16:21:19 +01:00
David Bariod
9abefb94aa
do not clear error formatting informative field
2018-12-14 17:01:34 +01:00
David Bariod
9f049671f1
Merge pull request #864 from ceriath/patch-1
...
Remove colored output on windows
2018-12-10 09:02:29 +01:00
Ceriath
d962013756
respect ForceColor and environment variables over OS check
2018-12-09 21:47:44 +01:00
David Bariod
93ebe33ece
Merge pull request #870 from smacker/skip_func_pointer_type_value_in_fields
...
Skip func pointer type value in fields
2018-12-09 15:03:58 +01:00
David Bariod
3f1910655c
Merge pull request #868 from dolmen/fix-travis-import-path
...
Travis: fix checkout dir to help contributors run Travis on their fork
2018-12-07 06:46:55 +01:00
Maxim Sukharev
08e8d6501d
Skip func pointer type value in fields
...
Before there was introduced a fix for JSONFormatter when func type value
passed as Field. This commit does the same but for pointer to func.
Ref:
https://github.com/sirupsen/logrus/issues/642
https://github.com/sirupsen/logrus/pull/832
2018-12-05 19:14:19 +01:00
Olivier Mengué
0c5e33c7e0
Travis: fix checkout dir to help contributors run Travis on their fork
...
Set the Travis-CI checkout path to allow contributors running Travis-CI
on their fork to have Travis-CI launching using the canonical import
path instead of the path of the fork.
2018-11-25 23:15:12 +01:00
David Bariod
29d7eb25e8
Merge pull request #857 from h12w/master
...
fix race condition caused by writing to entry.Data
2018-11-22 07:14:47 +01:00
ceriath
f1b98e4006
ignore expected color on windows
2018-11-16 15:19:37 +01:00
ceriath
e9026580bf
Disable colored output on windows entirely
...
Currently the textformatter on windows outputs
``←[31mERRO←[0m[0000] test windows``
when coloring is not disabled explicitly.
However, windows up to windows 8.1 does not support colored output on cmd entirely. Windows 10 added support for it, which is off by default and has to be enabled via registry or environment variable. Therefore i suggest removing colored output on windows entirely to make the output usable again.
2018-11-16 15:17:01 +01:00
David Bariod
91da99df23
Merge pull request #860 from xrstf/master
...
Fix hook example
2018-11-16 14:29:20 +01:00
David Bariod
b0e671819e
Merge pull request #841 from sirupsen/fix_aix_build
...
Attempt to fix build break on aix
2018-11-16 14:26:04 +01:00
xrstf
eab2c444ac
fix hook example
2018-11-09 13:34:45 +01:00
Hǎi-Liàng "Hal" Wáng
c7183bf629
fix missing parameter
2018-11-06 10:01:28 +00:00
Hǎi-Liàng "Hal" Wáng
2cafb78db2
fix race condition caused by writing to entry.Data, using the same technique as JSONFormatter
2018-11-05 12:35:02 +00:00
David Bariod
44067abb19
Merge remote-tracking branch 'upstream/master'
2018-11-03 07:28:19 +01:00
David Bariod
7eeb7b7cbd
Merge pull request #849 from FabienM/add-gelf-formatter
...
Add GELF to third party formatters
2018-11-01 08:55:17 +01:00
David Bariod
bcd833dfe8
v1.2.0 changelog
2018-11-01 08:39:56 +01:00
David Bariod
fd2308367e
Merge pull request #854 from sirupsen/fix_panic_text_formatter
...
fix panic in text formatter
2018-10-31 07:17:07 +01:00
David Bariod
d10c2f9e3c
fix panic in text formatter
...
The panic was caused to a nil pointer access when report
caller was activated with output coloring disabled
Fixes #852
2018-10-31 07:08:09 +01:00
David Bariod
566a5f6908
Merge pull request #845 from yanana/make-level-implement-text-unmarshaler
...
Make logrus.Level implement encoding.TextUnmarshaler
2018-10-29 07:08:39 +01:00
David Bariod
251d6bf713
Merge pull request #850 from sirupsen/caller_feature
...
Add optional log field with calling method
2018-10-28 18:17:14 +01:00
David Bariod
5a78c38d0e
make file name comparison os independant
2018-10-28 18:12:32 +01:00
David Bariod
d2654b752f
add file and line number in output when report caller is enabled
2018-10-28 17:39:39 +01:00
David Bariod
fa01b53097
move test functions and test utils functions in their own package
2018-10-28 14:22:33 +01:00
David Bariod
ec57031db1
store a runtime.Frame in Entry instead of the caller function name
2018-10-28 14:21:49 +01:00
David Bariod
975c406ddb
Use a sync.Once to init the reportCaller data
2018-10-27 15:21:30 +02:00
David Bariod
5fcd19eae6
add a SetReportCaller on Logger object
2018-10-27 15:19:06 +02:00
David Bariod
64d5b7e66c
Merge branch 'master' into caller_feature
2018-10-27 15:10:52 +02:00
Fabien Meurillon
0c525822dc
Add GELF to third party formatters
2018-10-24 11:03:07 +02:00
Shun Yanaura
5c1f2cd52c
Make logrus.Level implement encoding.TextUnmarshaler
2018-10-22 04:20:01 +09:00
David Bariod
4fabf2fffc
Merge pull request #846 from sirupsen/gomod_konsorten_version
...
Fix the version of windows coloring library dependency
2018-10-21 12:09:20 +02:00
David Bariod
bb98c6c533
Fix the version of windows coloring library dependency
2018-10-21 11:53:14 +02:00
David Bariod
08e90462da
Merge pull request #844 from loren-osborn/pull/652_AddTraceLevelLogging
...
Added TRACE level logging.
2018-10-20 07:09:04 +02:00
Loren Osborn
ed3ffa0190
PR#844: Added Trace to TestLogLevelEnabled() (requested by @dgsb)
2018-10-19 09:15:13 -07:00
Loren Osborn
b54cafe5ce
Addresses @stevvooe's backward compatibility concerns.
2018-10-18 10:12:27 -07:00
Maxim Korolyov
ef9d84e9b3
Added trace log level.
2018-10-17 19:42:01 -07:00
Giedrius Dubinskas
c7a33dc5de
Add Trace level logging
2018-10-17 19:12:50 -07:00
drampull
4981d8161c
Added TRACE level logging.
2018-10-17 18:22:00 -07:00
David Bariod
680f584d62
Merge pull request #842 from dgsb/master
...
Add an example for tracing global variable with hook
2018-10-16 13:22:44 +02:00
David Bariod
9c7692ccff
disable colors on hook example
2018-10-15 21:32:20 +02:00
David Bariod
f2ab87f230
Add an example for tracing global variable with hook
2018-10-15 21:20:03 +02:00
David Bariod
ff92509e2c
Attempt to fix build break on aix
2018-10-12 06:57:07 +02:00
David Bariod
4582136994
Merge pull request #837 from caalberts/test-fatal
...
Implements #813 - Add option to panic in `test.NewNullLogger`
2018-10-10 22:06:18 +02:00
Albert Salim
a13c5db57c
Fix typo in comment
2018-10-10 21:59:03 +08:00
Albert Salim
4346c76f26
Remove unnecessary wrapper function on `os.Exit`
2018-10-10 21:57:58 +08:00
Albert Salim
99bc300c8d
Add a method Exit on Logger that calls `os.Exit` or alternate exit function.
...
This keeps backward compatibility for static declaration of logger
that does not specify `ExitFunc` field.
2018-10-10 21:54:15 +08:00
David Bariod
ad15b42461
Update changelog for v1.1.1 release
2018-10-08 22:30:39 +02:00
David Bariod
3f90cee1e4
Rationalize os specific build constraints
2018-10-06 15:42:00 +02:00