Commit Graph

1210 Commits

Author SHA1 Message Date
Didip Kerabat 90a435e26a Update more README 2014-07-18 15:48:56 -07:00
Didip Kerabat 24b6c463ab Update frontpage README 2014-07-18 15:47:34 -07:00
Didip Kerabat 58cc2b3fec Added README 2014-07-18 15:45:49 -07:00
Didip Kerabat 5c909080d7 SyslogHook 2014-07-18 00:28:40 -07:00
Simon Eskildsen 23c2cf5a8b Merge pull request #40 from aybabtme/assert-type-avoid-panics
Checks that the `error` field is really of `error` type.
2014-07-15 10:34:09 -04:00
Antoine Grondin 52039d614e Checks that the `error` field is really and `error` type. 2014-07-13 14:49:59 -04:00
Simon Eskildsen 97978e5e54 Merge pull request #37 from eapache/fmt
go fmt
2014-06-09 18:07:14 -04:00
Evan Huus 7093f67073 go fmt 2014-06-09 16:27:33 -04:00
Simon Eskildsen 9186db83c2 Merge pull request #34 from shuhaowu/chained-with-fields
Added support to chain withfields
2014-06-09 12:02:01 -04:00
Shuhao Wu 7a3a90cb3d Added test 2014-06-09 11:54:10 -04:00
Shuhao Wu 511792f912 Added support to chain withfields
`WithField` and `WithFields` right now doesn't chain properly. Meaning
that if you do something like:

    localLog := logger.WithField("tag", "value")
    localLog.WithField("v1", "value").Info("message1")
    localLog.Info("message2")

The `v1` will be carried over to `message2`.

With this patch, each WithField/WithFields call are isolated.
2014-06-09 11:32:20 -04:00
Simon Eskildsen d54646ba8e Merge pull request #32 from aarondl/master
Clean up text_formatter code with a byte.Buffer
2014-05-25 21:28:42 -04:00
Aaron L 0d1e231957 Clean up text_formatter code with a byte.Buffer 2014-05-24 07:48:57 -07:00
Simon Eskildsen 13600d2325 text_formatter: move relative time logic from entry 2014-05-03 20:43:55 -04:00
Simon Eskildsen 11a9ddab08 entry: remove duplicate hook for debug level 2014-05-03 20:42:28 -04:00
Simon Eskildsen b65435d801 hooks/airbrake: fix docs 2014-05-03 20:32:21 -04:00
Simon Eskildsen f8afa65d86 test: remove temporary benchmarks 2014-05-03 20:31:11 -04:00
Simon Eskildsen a7c84e5d7d Merge pull request #27 from Sirupsen/more-tests
More tests
2014-05-03 20:29:54 -04:00
Simon Eskildsen 62838be1c2 hook: add tests 2014-05-03 20:27:56 -04:00
Simon Eskildsen 27249086ed Merge pull request #26 from Sirupsen/printfln-behavior-25
entry: log with spaces between all operands on *ln #25
2014-05-03 20:26:11 -04:00
Simon Eskildsen d85ac80aa9 entry: log with spaces between all operands on *ln #25 2014-05-03 20:20:07 -04:00
Simon Eskildsen eeed235659 entry: fire hook before obtaining reader #24 #13 2014-05-02 10:08:54 -04:00
Simon Eskildsen 5568a01db7 Merge pull request #23 from aybabtme/patch-1
Wrong year in LICENSE.
2014-04-23 21:11:52 -04:00
Antoine Grondin 37d48f2de0 Wrong year in LICENSE. 2014-04-23 20:41:12 -04:00
Simon Eskildsen 3d664eab7a readme: cleanup 2014-04-23 20:22:19 -04:00
Simon Eskildsen bcef0f2992 airbrake: remove from root 2014-04-23 20:19:07 -04:00
Simon Eskildsen 2936962d6a readme: remove todo 2014-04-23 20:14:59 -04:00
Simon Eskildsen f3fbc78d39 Merge pull request #21 from rnapier/master
Add Windows/FreeBSD support
2014-04-23 20:00:00 -04:00
Simon Eskildsen 67dfc7afbe Merge pull request #17 from Sirupsen/airbrake
hooks: add airbrake hook
2014-04-23 19:56:07 -04:00
Simon Eskildsen d4f08ce128 hooks: add airbrake hook
hooks: Add airbrake hook

examples: move around to avoid overloading main

airbarke move around

remove tex.tgo

readme: cleanup

readme: try something different
2014-04-23 19:55:11 -04:00
Rob Napier d32bfc962c Add Windows/FreeBSD support 2014-04-23 19:38:56 -04:00
Simon Eskildsen b73d08314f entry: make logger on entry public 2014-04-23 16:54:53 +00:00
Simon Eskildsen c63fbfb0fd Merge pull request #19 from meatballhat/l2met-compat
Switching non-TTY text formatter to use %q instead of '%v'
2014-04-21 09:02:16 -04:00
Dan Buch 058bed65b7 Modifying example to allow for both json and text formats
and regenerating the non-TTY text output example just in case I
converted it wrong.
2014-04-20 15:38:09 -04:00
Dan Buch 7c14fae98a Adjusting README to account for quote style change in non-TTY text format
plus removing link to external `l2met` formatter, as it is no longer
necessary.
2014-04-20 15:33:11 -04:00
Dan Buch 79b3145302 Switching non-TTY text formatter to use %q instead of '%v'
so that the output becomes l2met compatible yey!
2014-04-20 15:29:03 -04:00
Simon Eskildsen 7344642b50 Merge pull request #18 from charliesome/spacing-tweak
Space out the walrus from the travis badge a bit
2014-04-13 23:04:41 -04:00
Charlie Somerville beb2ae0661 space out the walrus from the travis badge a bit 2014-04-14 13:02:30 +10:00
Simon Eskildsen c4d09daeac readme: add copy pasta example 2014-04-13 17:51:46 -04:00
Simon Eskildsen f57ecef66a readme: consistent third party formatters 2014-04-13 17:39:58 -04:00
Simon Eskildsen 89adf76557 Merge pull request #16 from meatballhat/adding-l2met-third-party-formatter
Adding link to l2met formatter
2014-04-13 17:38:59 -04:00
Dan Buch 87db9d5eea Adding link to l2met formatter 2014-04-12 19:07:17 -04:00
Simon Eskildsen d4ada4466b readme: add travis badge 2014-03-26 09:30:52 -04:00
Simon Eskildsen 78eb148f52 travis: fix deps 2014-03-26 09:29:03 -04:00
Simon Eskildsen d3710e718c travis: add config file 2014-03-26 09:20:36 -04:00
Simon Eskildsen 856b995d46 Merge pull request #12 from Sproutling/master
code builds -- fixes incorrect use of entry.Info, change to entry.Infof
2014-03-26 09:06:28 -04:00
Sarah Adams 3719c88c8f code builds -- fixes incorrect use of entry.Info, change to entry.Infof 2014-03-25 22:51:40 -07:00
Simon Eskildsen f58674a4a6 Merge pull request #11 from anthonybishopric/defer_formatting
Defer formatting of log values in Levelf(), Levelln()
2014-03-25 19:14:25 -04:00
Anthony Bishopric 9f6da0e77c Defer formatting of log values in Levelf(), Levelln()
The Level() family of log methods defer formatting of log
values until it is confident that the log level needs them.
This change allows that deferral to happen at the Levelf()
and Levelln() levels too.

This commit also adds benchmarks to demonstrate the improved
performance of these functions
2014-03-25 14:54:31 -07:00
Simon Eskildsen f9af352362 Merge pull request #10 from pushrax/add-forced-colors
Add option to force TextFormatter to use colors
2014-03-16 16:17:15 -07:00