mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![]() Fixes #19803 Updated the json-logger to utilize the common log option 'tag' that can define container/image information to include as part of logging. When the 'tag' log option is not included, there is no change to the log content via the json-logger. When the 'tag' log option is included, the tag will be parsed as a template and the result will be stored within each log entry as the attribute 'tag'. Update: Removing test added to integration_cli as those have been deprecated. Update: Using proper test calls (require and assert) in jsonfilelog_test.go based on review. Update: Added new unit test configs for logs with tag. Updated unit test error checking. Update: Cleanup check in jsonlogbytes_test.go to match pending changes in PR #34946. Update: Merging to correct conflicts from PR #34946. Signed-off-by: bonczj <josh.bonczkowski@gmail.com> |
||
---|---|---|
.. | ||
jsonlog.go | ||
jsonlogbytes.go | ||
jsonlogbytes_test.go | ||
time_marshalling.go | ||
time_marshalling_test.go |