moby--moby/pkg/jsonlog
Brian Goff bd9d14a07b Add support for reading logs extra attrs
The jsonlog logger currently allows specifying envs and labels that
should be propagated to the log message, however there has been no way
to read that back.

This adds a new API option to enable inserting these attrs back to the
log reader.

With timestamps, this looks like so:
```
92016-04-08T15:28:09.835913720Z foo=bar,hello=world hello
```

The extra attrs are comma separated before the log message but after
timestamps.

Without timestaps it looks like so:
```
foo=bar,hello=world hello
```

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-05-06 20:42:20 -04:00
..
jsonlog.go Add support for reading logs extra attrs 2016-05-06 20:42:20 -04:00
jsonlog_marshalling.go fix variables that werent being called 2016-03-17 13:19:55 -07:00
jsonlog_marshalling_test.go Add support for reading logs extra attrs 2016-05-06 20:42:20 -04:00
jsonlogbytes.go fix variables that werent being called 2016-03-17 13:19:55 -07:00
jsonlogbytes_test.go add labels/env log option for jsonfile 2015-10-12 21:12:46 +02:00
time_marshalling.go Move timeutils functions to the only places where they are used. 2015-12-15 14:56:14 -05:00
time_marshalling_test.go Move timeutils functions to the only places where they are used. 2015-12-15 14:56:14 -05:00