Christian Schwarz
5b97953bfb
run golangci-lint and apply suggested fixes
2019-03-27 13:12:26 +01: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
710bf79f7e
logger.Logger: fix WithFields() dropping all but last field
2017-12-30 13:00:23 +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
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
e0e362c4ff
dump logrus and roll our own logger instead
2017-09-24 00:57:52 +02:00