Commit Graph

1179 Commits

Author SHA1 Message Date
Giovanni Bajo 0009c01b31 Simplify dep install 2015-01-18 02:19:28 +01:00
Giovanni Bajo 0e4c360cd8 Test with go 1.4 2015-01-18 02:06:44 +01:00
Simon Eskildsen 58f778a886 Revert "Merge pull request #100 from crquan/patch-1"
This reverts commit c6a969a0de, reversing
changes made to 3c5b048a9d.
2015-01-15 13:40:48 -05:00
Simon Eskildsen c6a969a0de Merge pull request #100 from crquan/patch-1
make sure no trailing spaces
2015-01-15 07:12:29 -05:00
Simon Eskildsen 3c5b048a9d Merge pull request #104 from freeformz/doc-fix
The format is logfmt, not l2met, although that is where it "originated"
2015-01-14 20:05:07 -05:00
Simon Eskildsen 35ade18898 Merge pull request #101 from vbatts/termios_openbsd
openbsd Termios
2015-01-14 18:31:36 -05:00
Simon Eskildsen 2f722357d3 Merge pull request #105 from phemmer/entry_warning
Add missing `(*Entry) Warning()` function
2015-01-14 18:30:43 -05:00
Patrick Hemmer e2dff63faa Add missing `(*Entry) Warning()` function 2015-01-12 17:20:11 -05:00
Patrick Hemmer 299ee95277 add io.Writer interface compatability 2015-01-12 03:24:19 -05:00
Edward Muller 8c09acde89 The format is logfmt, not l2met, although that is where it "originated" 2015-01-09 16:13:34 -08:00
Vincent Batts 97e951044c terminal: openbsd Termios
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-01-06 08:44:32 -05:00
Derek Che dcbe8d66af make sure no leading or trailing spaces
This changed printColored and printKeyValue to print in same way
with prefix space instead of trailing space, to make it easier
to slice out when returning in Format;
The test cases are to make sure msg formartting doesn't include
leading or trailing spaces;

Closes #99

Signed-off-by: Derek Che <drc@yahoo-inc.com>
2015-01-04 00:19:36 -08:00
Derek Che a243bbaa0b share common calling path in printKeyValue
Signed-off-by: Derek Che <drc@yahoo-inc.com>
2015-01-04 00:01:49 -08:00
Derek Che 03377c6168 rename f.appendKeyValue to printKeyValue
printKeyValue is working similar like printColored, not using
any fields of TextFormatter, should be a util func instead of
a method of TextFormatter.

Signed-off-by: Derek Che <drc@yahoo-inc.com>
2015-01-03 23:56:39 -08:00
Simon Eskildsen d2f9ffa1d9 readme: add slack hook
closes #98
2014-12-30 14:02:50 +01:00
Simon Eskildsen a51c6e4ce2 Merge pull request #96 from msabramo/patch-4
README.md: Add Godoc badge to top
2014-12-29 11:10:33 +01:00
Marc Abramowitz 82c427c515 README.md: Add Godoc badge to top 2014-12-28 12:56:20 -08:00
Simon Eskildsen fd90de6570 Merge pull request #93 from xi3/master
Update papertrail.go
2014-12-26 20:55:22 +01:00
xi3 60d80a6d2c Update papertrail.go
Report all log data,  not just the entry.message.
2014-12-19 21:11:58 +08:00
Simon Eskildsen 51fe59aca1 Merge pull request #92 from rasky/no-extra-quoting
Avoid extra quotes where not strictly necessary.
2014-12-18 10:52:14 -05:00
Giovanni Bajo e5c1364122 Fix test to adjust for missing quotes 2014-12-18 15:14:24 +01:00
Giovanni Bajo 15b296befc Avoid using regexp 2014-12-18 15:09:01 +01:00
Giovanni Bajo 98ee5434ef Make the test more robust 2014-12-18 07:59:41 +01:00
Simon Eskildsen 7096056d3c Merge pull request #91 from rasky/disable-timestamp
Allow disabling timestamp in non-tty output.
2014-12-15 16:09:30 -05:00
Giovanni Bajo f0a637a834 Document new option 2014-12-15 21:58:26 +01:00
Giovanni Bajo a3ef049df9 Avoid extra quotes where not strictly necessary.
It's not necessary to enclose in quotes every single string value
in log2met format; when using basic words, it's possible to not
quote it (as heroku does for its own logging). This keeps the
logs easier on the human eye.
2014-12-15 20:20:33 +01:00
Giovanni Bajo 3e9d38f80d Allow disabling timestamp in non-tty output.
This is useful if the output is already being piped to a logger
daemon that will prefix the timestamp by itself (eg: on heroku).
2014-12-15 20:02:02 +01:00
Simon Eskildsen 4266e0eb68 Merge pull request #90 from sebest/master
Add links to a loggly.com hook
2014-12-11 20:08:49 -05:00
Sebastien Estienne 535f69a2f4 Add links to a loggly.com hook 2014-12-11 16:01:13 -08:00
Simon Eskildsen 5f3c40cc46 Merge pull request #89 from Sirupsen/fix-logrus-double-fields
Fix JSON formatter prefixing old msg/time/level fields
2014-12-10 14:07:28 -05:00
Antoine Grondin 2835e150d9 fixes #88 2014-12-09 21:57:50 -05:00
Antoine Grondin 62b915c008 regression test for issue #88 2014-12-09 21:53:14 -05:00
Simon Eskildsen 0ae53775f7 Merge pull request #86 from romankonz/patch-1
Update README.md - changed conflicting imports
2014-12-05 06:51:43 -05:00
Roman Konz 5e322e5cfe Update README.md - changed conflicting imports 2014-12-05 11:00:48 +01:00
Simon Eskildsen 6c28e16200 Merge pull request #85 from gigaroby/doc-fix
documentation fix
2014-11-27 12:42:15 -05:00
Roberto Bampi d9706afd4a documentation fix 2014-11-27 07:54:16 +01:00
Simon Eskildsen cc09837bcd Merge pull request #74 from gigaroby/sentry-hook
Added sentry hook
2014-11-25 12:46:20 -05:00
Roberto Bampi 5df4b882d0 timeout is now configurable and documented 2014-11-25 13:36:08 +01:00
Peter Olds f9e0c0dd4a Fix Papertrail bug
Conflicts:
	hooks/papertrail/papertrail.go
2014-11-23 17:11:40 +00:00
Simon Eskildsen 1f2ba2c631 Merge pull request #84 from vincentbernat/fix/syslog
syslog: let syslog output lookup level directly in Entry struct
2014-11-23 12:07:01 -05:00
Vincent Bernat c0b1ea991b syslog: let syslog output lookup level directly in Entry struct
Log level has moved from `entry.Data["level"]` to `entry.Level`. Use
that to get the right level.

Fix: #82
2014-11-23 18:02:34 +01:00
Simon Eskildsen 66afa87e45 Merge pull request #79 from duglin/AddGetLevel
add GetLevel support
2014-11-22 21:17:51 -05:00
Simon Eskildsen 98924b0b51 readme: fix syslog example 2014-11-23 02:09:47 +00:00
Doug Davis c64b18f688 add GetLevel support
Signed-off-by: Doug Davis <dug@us.ibm.com>
2014-11-12 07:44:54 -05:00
Roberto Bampi 383ab1fb69 added delivery timeout 2014-11-06 21:17:29 +01:00
Simon Eskildsen f92b7950b3 Merge pull request #76 from meatballhat/save-entry-string-for-panic
Panic with entry instead of entry string
2014-11-06 11:24:30 -05:00
Dan Buch 5164671bc6 Making panic level assertions more helpful 2014-11-06 08:42:52 -05:00
Roberto Bampi 8bbc74e9fb various fixes 2014-11-06 10:07:41 +01:00
Dan Buch 9836f1ba0e Adding tests for PanicLevel behavior, plus changing behavior! 🙀 2014-11-05 20:39:35 -05:00
Dan Buch f302a46d2a Switching to io.MultiWriter for clarity 2014-11-05 14:07:40 -05:00