summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-10 23:55:45 +0100
committerGitHub <noreply@github.com>2020-01-10 23:55:45 +0100
commit0e9c208d3f9fc6f160f7e7746119ddf99ae6f220 (patch)
tree858cfc2d1b6867ee9c81b6897f5ce802811a8fc4 /libpod/container.go
parent40a16ee4c36aa143d3b27da9189d16afce35740d (diff)
parent4726eb2861e72a079ed337371182226a666c541a (diff)
downloadpodman-0e9c208d3f9fc6f160f7e7746119ddf99ae6f220.tar.gz
podman-0e9c208d3f9fc6f160f7e7746119ddf99ae6f220.tar.bz2
podman-0e9c208d3f9fc6f160f7e7746119ddf99ae6f220.zip
Merge pull request #4805 from giuseppe/log-tag
log: support --log-opt tag=
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go
index edf72f4ee..a046dcafc 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -379,6 +379,8 @@ type ContainerConfig struct {
CgroupParent string `json:"cgroupParent"`
// LogPath log location
LogPath string `json:"logPath"`
+ // LogTag is the tag used for logging
+ LogTag string `json:"logTag"`
// LogDriver driver for logs
LogDriver string `json:"logDriver"`
// File containing the conmon PID
@@ -726,6 +728,11 @@ func (c *Container) LogPath() string {
return c.config.LogPath
}
+// LogTag returns the tag to the container's log file
+func (c *Container) LogTag() string {
+ return c.config.LogTag
+}
+
// RestartPolicy returns the container's restart policy.
func (c *Container) RestartPolicy() string {
return c.config.RestartPolicy