Commit Graph

614 Commits

Author SHA1 Message Date
Alexey Remizov 6054749f37 Fixed typo in the comment 2017-03-22 17:09:05 +03:00
Simon Eskildsen 10f801ebc3 Merge pull request #498 from beaubrewer/patch-1
Update README.md
2017-03-17 10:32:14 -04:00
Simon Eskildsen f3b677a4dc Merge pull request #499 from Bo0mer/master
Fix typo
2017-03-17 10:32:04 -04:00
Simon Eskildsen 547e984ad9 Merge pull request #480 from xulike666/fix-dead-url
Fix dead url for alt_exit.go
2017-03-15 11:13:20 -04:00
Simon Eskildsen 9f8e3f5df8 Merge pull request #490 from kz/patch-1
Add Discordrus, a hook for Discord, to README.md
2017-03-15 11:13:05 -04:00
Simon Eskildsen 634aa8bc0a Merge pull request #494 from esap/patch-1
add import for example
2017-03-15 11:12:54 -04:00
Simon Eskildsen 79fbc614d9 Merge pull request #485 from mohanraj-r/patch-1
Add missing quotes around `user_ip` in example for "Default Fields"
2017-03-15 11:12:14 -04:00
Simon Eskildsen ba1b36c82c release 0.11.5 2017-03-14 15:23:53 -04:00
Simon Eskildsen 924f89f0e3 changelog for #372 2017-03-14 15:23:30 -04:00
Simon Eskildsen 1deb2db2a6 Merge pull request #372 from glasser/glasser/entry-writer
Add Writer and WriterLevel to Entry
2017-03-08 15:36:35 -05:00
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
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