moby--moby/daemon/logger
Aaron Lehmann b642b3f21f Avoid using a map for log attributes
Having a map per log entry seemed heavier than necessary. These
attributes end up being sorted and serialized, so storing them in a map
doesn't add anything (there's no random access element). In SwarmKit,
they originate as a slice, so there's an unnecessary conversion to a map
and back.

This also fixes the sort comparator, which used to inefficiently split
the string on each comparison.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2017-07-18 19:01:20 -07:00
..
awslogs Spelling fixes 2017-07-03 13:13:09 -07:00
etwlogs [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
fluentd Replaces fluentd-address string by constant 2017-07-16 23:06:57 -07:00
gcplogs GCP Logs: send log line as jsonPayload.message instead of jsonPayload.data 2017-05-15 16:35:53 -07:00
gelf
journald Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00
jsonfilelog Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00
logentries
loggerutils Fix wrong filemode for rotate log files 2017-07-03 03:49:22 -04:00
splunk
syslog Fix stderr logging for journald and syslog 2017-06-26 14:37:43 -07:00
adapter.go Logging driver should receive same file in start/stop request 2017-06-08 10:05:52 +02:00
adapter_test.go * standardize timeouts for log reads and writes for logger adapter tests 2017-06-18 18:47:45 -07:00
copier.go
copier_test.go
factory.go Add logdrivers to /info 2017-04-11 18:07:15 -04:00
logger.go Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00
logger_test.go Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00
loginfo.go
plugin.go Logging driver should receive same file in start/stop request 2017-06-08 10:05:52 +02:00
plugin_unix.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
plugin_unsupported.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
proxy.go Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
ring.go Spelling fixes 2017-07-03 13:13:09 -07:00
ring_test.go