Commit Graph

756 Commits

Author SHA1 Message Date
Ivan Borshukov f0542780a2 Fix typo 2017-03-07 18:02:20 +02:00
David Glasser 1fccefa2f4 Add Writer and WriterLevel to Entry
This lets you do things like:

    cmd := exec.Command("command")
    stdout := logrus.WithField("fd", "stdout").Writer()
    defer stdout.Close()
    stderr := logrus.WithField("fd", "stderr").Writer()
    defer stderr.Close()
    cmd.Stdout = stdout
    cmd.Stderr = stderr
2017-03-06 16:24:57 -08:00
Beau N. Brewer add54587ab Update README.md
Added AWS Firehose hook. This provides us with a nice log steam to S3 workflow with very little effort.
2017-03-01 12:26:05 -07:00
Simon Eskildsen 0208149b40 changelog: 0.11.4 2017-02-27 07:44:09 -05:00
Simon Eskildsen cf5e096eea Merge pull request #493 from 0xE0F/master
Fixed compilation for Solaris
2017-02-27 07:43:41 -05:00
Simon Eskildsen dc71819687 release 0.11.3 2017-02-27 07:07:50 -05:00
Simon Eskildsen 4058491e25 changelog: add 481 2017-02-27 07:07:31 -05:00
Simon Eskildsen aee0dbac51 Merge pull request #481 from darrenmcc/import-io
Fixed import
2017-02-27 07:05:40 -05:00
一零村长 96acd6ab04 add import for example 2017-02-24 11:58:06 +08:00
Denis Barakhtanov f9d4a063d1 Fixed compilation for Solaris
There are missing "io" import and unused variable
Releated issues #471 #289
2017-02-24 10:16:21 +11:00
Kelvin Zhang 9fd28e6cca Add Discordrus, a hook for Discord, to README.md 2017-02-17 14:09:07 +00:00
Simon Eskildsen 7f4b1adc79 changelog: add entries for formatter 2017-02-15 11:43:24 -05:00
Simon Eskildsen 67bca5dc4f Merge pull request #484 from bbrks/text-formatter-quote-config
Text formatter quote configuration
2017-02-15 11:41:55 -05:00
Ben Brooks e98cd92ccf
Address PR comments 2017-02-15 13:08:26 +00:00
Mohan Raj Rajamanickam ca9493dc53 Fix quoted key field in Readme 2017-02-14 16:37:12 -08:00
Ben Brooks b545aee819
Add TextFormatter config for custom quote runes 2017-02-14 11:51:23 +00:00
Ben Brooks cfca98e6d9
Add 'QuoteEmptyFields' option to TextFormatter 2017-02-14 10:53:03 +00:00
Darren McCleary 6b682c5933 More import fixes 2017-02-13 10:56:35 -05:00
Christian Müller 56103bcb33 Fixes typo 2017-02-10 16:30:30 +01:00
Darren McCleary d82ae3267f Fixed import 2017-02-08 14:03:21 -05:00
Aaron.L.Xu 169c157a10 fix dead url for alt_exit.go 2017-02-08 19:18:14 +08:00
Simon Eskildsen 3f603f494d readme: add section on default fields 2017-02-07 13:34:08 -05:00
Simon Eskildsen c078b1e43f changelog: add fixing windows terminal detection 2017-02-07 06:49:18 -05:00
Simon Eskildsen 066a382098 Merge pull request #476 from majimboo/patch-1
Fixed missing imports for windows terminal
2017-02-07 06:48:23 -05:00
Simon Eskildsen ac38cb37a8 readme: fix markdown code syntax for stdlib example 2017-02-07 06:40:37 -05:00
Majid Arif Siddiqui 5c8f1691bc Fixed missing imports for windows terminal 2017-02-07 11:28:14 +08:00
Simon Eskildsen 080ca65fb5 readme: add section on overriding stdlib logger 2017-02-06 19:56:22 -05:00
Simon Eskildsen feda23452a readme: link to colorable for windows coloring 2017-02-06 19:51:07 -05:00
Simon Eskildsen b9def5b3c3 readme: even more hooks 2017-02-06 19:44:51 -05:00
Simon Eskildsen 38f1ab3057 changelog: add for 0.11.0 and 0.11.1 2017-02-06 19:40:39 -05:00
Simon Eskildsen e2fcfb2fba readme: add some entries from stale PRs 2017-02-06 19:40:31 -05:00
Simon Eskildsen 03bf27ef26 Merge pull request #471 from sirupsen/terminal-actual-fd
text_formatter: detect tty based on fd
2017-02-06 19:32:13 -05:00
Simon Eskildsen 141e6dc6a6 readme: update with example of logging to file 2017-02-06 19:23:53 -05:00
Simon Eskildsen 11fbf0fa42 text_formatter: fix race 2017-02-06 19:16:49 -05:00
Simon Eskildsen 1726e1744a text_formatter: detect tty based on fd 2017-02-06 19:16:49 -05:00
Stephen Day 61e43dc76f Merge pull request #467 from bengadbois/small_code_cleanup
Small var declaration cleanup
2017-01-12 17:19:11 -08:00
Stephen Day 800b0fc4a6 Merge pull request #465 from at15/fix/miniTS
Remove miniTS in TextFormatter
2017-01-11 13:52:18 -08:00
Ben Gadbois f761cee910 Small var declaration cleanup 2017-01-11 19:19:12 +01:00
at15 5ed3e7dc93
Remove miniTS in TextFormatter
- Related issues: https://github.com/sirupsen/logrus/issues/457
- miniTS use current time instead of time the log function is called,
which is inaccurate when hook takes a long time
- `miniTS` is removed and replaced by
`int(entry.Time.Sub(baseTimestamp)/time.Second)` in `printColored`
which is the only usage of `miniTS`
2017-01-10 21:43:36 -08:00
Stephen Day d4158e8bbd Merge pull request #452 from cjellick/readme-update
Update readme example for switching  output
2017-01-10 12:37:04 -08:00
Simon Eskildsen 2f991e541c Merge pull request #455 from puddingfactory/master
Add Logentrus to README.md (hook for Logentries)
2017-01-10 15:30:36 -05:00
Stephen Day 9b48ece7fc Merge pull request #400 from carolynvs/disable-color-timestamp
Allow disabling timestamps with colored output
2017-01-06 14:16:01 -08:00
puddingfactory cf456d321e Add Logentrus, hook for Logentries, to list 2016-12-10 15:36:15 -06:00
Stephen Day 881bee4e20 Merge pull request #446 from AndrewBurian/json-disable-timestamp
Json disable timestamp
2016-12-01 18:35:07 -08:00
Craig Jellick 7d228b51ce Update readme example for switching output
Clarifies that stderr is the default, not stdout.
2016-12-01 17:37:34 -07:00
Simon Eskildsen 3c3917e625 readme: apologize for casing issue 2016-12-01 18:55:03 -05:00
Simon Eskildsen 26809363aa Revert "Merge pull request #384 from mnzt/master"
This reverts commit 42b84f9ec6, reversing
changes made to cf60a8c5d5.
2016-12-01 18:53:16 -05:00
Simon Eskildsen 42b84f9ec6 Merge pull request #384 from mnzt/master
Renaming upper-case 'Sirupsen' to 'sirupsen'
2016-11-30 15:35:45 -05:00
Stephen Day cf60a8c5d5 Merge pull request #449 from danielgtaylor-isp/patch-1
Fix typo in README
2016-11-30 12:16:55 -08:00
Daniel Taylor 90915c9326 Fix typo in README 2016-11-29 10:52:28 -08:00