Christian Schwarz
5b97953bfb
run golangci-lint and apply suggested fixes
2019-03-27 13:12:26 +01:00
Christian Schwarz
afed762774
format source tree using goimports
2019-03-22 19:41:12 +01:00
Christian Schwarz
ef3283638a
logger: add stderrlogger (sometimes useful)
2018-12-11 21:24:54 +01:00
Christian Schwarz
1690339440
colorized stdout logger if stdout is tty
2018-08-30 13:33:28 +02:00
Christian Schwarz
a2aa8e7bd7
finish pruner implementation
2018-08-29 19:00:45 +02:00
Christian Schwarz
e30ae972f4
gofmt
2018-08-25 21:30:25 +02:00
Christian Schwarz
c1f3076eb3
WIP2 logging done somewhat
2018-08-10 17:06:00 +02:00
Christian Schwarz
fc1c46ffd7
logger: fix ReplaceWith: would case parent field to be nil
...
Now WithField and ReplaceWith are wrappers around a common
forkLogger routine
regression introduced in 51377a8
2018-02-16 21:19:15 +01:00
Christian Schwarz
6f68c98c16
logger.Levle: implement flag.Value
2017-12-30 13:52:51 +01:00
Christian Schwarz
710bf79f7e
logger.Logger: fix WithFields() dropping all but last field
2017-12-30 13:00:23 +01:00
Christian Schwarz
c403e56835
fixup: broken test case for logger
...
refs #26
2017-12-29 21:14:49 +01:00
Christian Schwarz
839eccf513
logger.Outlet: WriteEntry must not block
...
- make TCPOutlet fully asynchronous, dropping messages if connection is
not fast enough
- syslog is just fine for now, local anyways
- stdout same thing
refs #26
2017-12-29 17:21:58 +01:00
Christian Schwarz
51377a8ffb
logger: support replacing fields
...
do no delete() from array since this could lead to resizing
refs #10
2017-12-27 14:39:43 +01:00
Christian Schwarz
f14dc3107f
logger: implement json.Unmarshaler
...
refs #10
2017-12-27 13:50:07 +01:00
Christian Schwarz
261d095108
logger: support forking of outlets
...
refs #10
2017-12-27 13:50:07 +01:00
Christian Schwarz
2bfcfa5be8
logging: first outlet receives logger error message
...
Abandons stderr special-casing:
* looks weird on shell and IO redirection to same file because of
interleaving of stdout and stderr
* better than a separate dedicated outlet because it does not require
additional configuration
fixes #28
BREAK SEMANTICS CONFIG
2017-11-17 00:25:38 +01:00
Christian Schwarz
a7f70a566d
logger: write internal / outlet errors to an error outlet
...
refs #28
2017-11-16 23:49:47 +01:00
Christian Schwarz
493a01c4fe
logger: fix nil pointer deref in WithError
...
fixes #9
2017-10-05 21:23:39 +02:00
Christian Schwarz
45670a7e5d
make vet happy: 'don't leak contexts'
2017-09-30 16:39:52 +02:00
Christian Schwarz
0cbee78b40
fix unreachable code & missing stringer-generated code
2017-09-30 16:31:55 +02:00
Christian Schwarz
7c86628f3b
logger: json serialization of log level is a string
2017-09-24 19:39:44 +02:00
Christian Schwarz
e0e362c4ff
dump logrus and roll our own logger instead
2017-09-24 00:57:52 +02:00