Commit Graph

1247 Commits

Author SHA1 Message Date
David Bariod 0de04f1584
Merge pull request #1088 from tklauser/simplify-windows
Simplify checkIfTerminal for Windows
2020-05-19 16:51:28 +02:00
Tobias Klauser 86657918d4 Simplify checkIfTerminal for Windows
Instead of relying on EnableVirtualTerminalProcessing from
github.com/konsorten/go-windows-terminal-sequences which just calls
GetConsoleMode, sets ENABLE_VIRTUAL_TERMINAL_PROCESSING and calls
SetConsoleMode with the new modified mode, implement it directly inside
checkIfTerminal. This also avoids the duplicate call to GetConsoleMode.
2020-05-06 15:58:24 +02:00
David Bariod 60c74ad9be update CHANGELOG.md with 1.5.0 and 1.6.0 version contents 2020-05-02 15:06:20 +02:00
David Bariod e8e563a823 Merge remote-tracking branch 'origin/master' into thlacroix-disable-quotes 2020-04-29 09:21:39 +02:00
David Bariod 0fd458a22e complete documetation on TextFormatter.DisableQuote 2020-04-29 09:15:21 +02:00
David Bariod 4d96c600d9 Merge branch 'disable-quotes' of https://github.com/thlacroix/logrus into thlacroix-disable-quotes 2020-04-29 09:10:49 +02:00
David Bariod a5b02471f8
Merge pull request #1136 from ialidzhikov/nit/line-endings
Change CRLF line endings to LF
2020-04-29 09:09:56 +02:00
David Bariod 163c051d4a
Merge pull request #1137 from sirupsen/fix_crash_windows
update github.com/konsorten/go-windows-terminal-sequences dependency …
2020-04-29 09:07:31 +02:00
David Bariod e79215d3d5 update github.com/konsorten/go-windows-terminal-sequences dependency to v1.0.3 2020-04-29 08:56:01 +02:00
ialidzhikov 4989a3fd5d Change CRLF line endings to LF
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-04-29 00:25:29 +03:00
Thomas Lacroix aff00feb0a Adds additional test cases for DisableQuote 2020-04-23 17:16:50 +02:00
Thomas Lacroix c7455de10a Adds flag to disable quotes in TextFormatter 2020-04-23 14:02:38 +02:00
Mark Phelps 91ef3ab5d5
Merge pull request #1131 from sirupsen/revert-1047
Revert #1047
2020-04-16 11:24:31 -04:00
Mark Phelps 03155c5499 Revert #1047 2020-04-16 11:13:51 -04:00
Ariel Simulevski 7d248fa1b1
Add loggers that take functions as input 2020-04-10 12:42:19 +02:00
Mark Phelps d417be0fe6
Merge pull request #1108 from cirelli94/fix-wrong-caller
Fix wrong caller
2020-03-22 09:43:59 -04:00
Mark Phelps 32fd107816
Merge pull request #1103 from sirupsen/fix-go114
fix logrus for go 1.14
2020-03-22 09:36:45 -04:00
Mark Phelps ddb57a2a54
Merge pull request #1110 from Dattax/patch-1
Title updates
2020-03-22 09:32:25 -04:00
Mark Phelps a635f0489d
Merge pull request #1113 from davidraleigh/html-escape
resolved conflicts for DisableHTMLEscape in json_formatter.go pull request #524
2020-03-22 09:27:13 -04:00
Mark Phelps 4ddc9cf62e
Merge pull request #1116 from admacleod/master
Resolve race condition with SetReportCaller() and Entry
2020-03-22 09:24:01 -04:00
Alisdair MacLeod e3e40605a2 remove errant whitespace 2020-03-19 10:02:20 +00:00
Alisdair MacLeod ba670baee1 fix deadlock in previous entry race condition fix 2020-03-19 10:01:29 +00:00
Alisdair MacLeod b28acda22d fix race condition in entry 2020-03-19 09:32:08 +00:00
Alisdair MacLeod e76a5c4450 create test to prove issue sirupsen/logrus#954 2020-03-19 09:29:19 +00:00
David Raleigh 0fb945b034 resolved conflicts 2020-03-13 13:22:47 -04:00
Deep Datta 0882384258
Title updates
Removed the non-breaking spaces in the ReadMe
2020-03-11 17:26:45 -07:00
Fabrizio Cirelli fa25593b15 Removed useless files 2020-03-09 14:45:58 +01:00
Fabrizio Cirelli af6ac8cee6 Fix wrong caller 2020-03-09 12:39:00 +01:00
David Bariod 7ea96a3284
Merge pull request #1102 from hlcfan/get-right-logrus-pkg-name
Fix caller package name
2020-03-06 11:24:46 +01:00
Mark Phelps 53000c4c0f
Merge pull request #921 from sosiska/patch-1
Rewrite if-else-if-else to switch statements
2020-03-04 09:42:50 -05:00
Mark Phelps 334dd7729c
Merge pull request #1060 from sirupsen/improve_withfield_doc
improve Logger.WithField documentation
2020-03-04 09:32:56 -05:00
Mark Phelps 1e936e2d75
Merge pull request #1091 from nolleh/master
add caption-json-formatter
2020-03-04 09:14:34 -05:00
David Bariod ab4d0e6ead run CI for go 1.13 and 1.14 2020-03-03 09:10:14 +01:00
Alex S 86a84a9d18 Get right logrus package name 2020-03-02 21:47:38 +08:00
Mark Phelps 77ab282a06
Merge pull request #1047 from lwsanty/fix-race-conditions-on-entry
fix race conditions on entry
2020-02-26 18:44:58 -05:00
Mark Phelps 7fab003954
Merge pull request #633 from bogem/patch-1
Fix typos in docs for New()
2020-02-26 18:21:58 -05:00
Mark Phelps 494ec951d1
Only mark issues as stale for now until we go through backlog of PRs
Only mark issues as stale for now until we go through backlog of PRs
2020-02-26 18:18:33 -05:00
Sébastien Lavoie 24566a3fc4
Merge pull request #924 from bunyk/master
Add hook to send logs to custom writer #678
2020-02-26 17:31:00 -05:00
Mark Phelps f5d95b63a6
Update stale.yml 2020-02-26 12:01:50 -05:00
Mark Phelps eef122e96e
Create stale.yml 2020-02-26 11:58:33 -05:00
Mark Phelps 2f069ddd45
Merge pull request #1072 from taywrobel/bugfix/dataBleedAcrossEntities
Fix entry data bleed when using WithContext and WithTime
2020-02-25 12:31:25 -05:00
Mark Phelps 63d9911443
Merge pull request #1082 from hlcfan/patch-1
Fix typo
2020-02-25 10:53:46 -05:00
Simon Eskildsen 4ecd9a62bd readme: maintenance-mode 2020-02-25 07:40:03 -05:00
Simon Eskildsen 947831125f
Merge pull request #1094 from devil418/fix-readme
Remove annoying punctuation in Readme for better screen reader accesssibility
2020-02-04 17:46:15 -05:00
Mikolaj Holysz 6895a36b17 Remove annoying punctuation in Readme for better screen reader accessibility.
One entry in the Logrus formatters list in the readme contained
a lot of extraneous punctuation.

When read with a screen reader, nothing but a bunch of question marks and weird symbol names could be heard,
making the line impossible to understand.
2020-01-28 19:39:15 +01:00
nolleh 779e0e214d add caption-json-formatter 2020-01-21 00:42:07 +09:00
Alex Shi b70d15e202
Fix typo 2019-12-18 14:10:06 +08:00
Dmitri Goutnik 28e212178a
Add support for freebsd/arm64 2019-12-09 07:44:42 -05:00
Taylor Wrobel 8fbaf3dbd0 Make Entry WithContext and WithTime copy tests more clear
Clarifies the data used in the EntryWithContextCopiesData test and
adds an equivalent test to verify the behavior of WithTime.
2019-12-03 13:50:59 -08:00
Taylor Wrobel bcc146f96b Fix entity data bleed when using WithContext and WithTime
Creates a copy of the data map when using WithContext to create a
child entity.  Without this, the data map of the parent entitiy,
which is exposed in the entity struct, is shared between a parent
and all children instances.

This can create bugs of shared or overwritten data when a parent
entity is used to make children in differing contexts, and behaves
differently than `WithField` and its diritivites which does make
a copy of the data.

Additionally implements the same logic for WithTime, for API
consistency in behavior.
2019-11-27 20:20:42 -08:00