From 095aaaa639ab57c594bb80bfefbfaed2a2fdff92 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 30 Jan 2018 06:23:58 +0100 Subject: Allow users to specify logpath Signed-off-by: Daniel J Walsh Closes: #135 Approved by: mheon --- libpod/container.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libpod/container.go') diff --git a/libpod/container.go b/libpod/container.go index 27042de39..ccf864826 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -236,8 +236,9 @@ type ContainerConfig struct { CreatedTime time.Time `json:"createdTime"` // Cgroup parent of the container CgroupParent string `json:"cgroupParent"` - - // TODO log options - logpath for plaintext, others for log drivers + // LogPath log location + LogPath string `json:"logPath"` + // TODO log options for log drivers } // ContainerStatus returns a string representation for users @@ -360,8 +361,7 @@ func (c *Container) RuntimeName() string { // This file will only be present after Init() is called to create the container // in runc func (c *Container) LogPath() string { - // TODO store this in state and allow overriding - return c.logPath() + return c.config.LogPath } // IPAddress returns the IP address of the container -- cgit v1.2.3-54-g00ecf