summaryrefslogtreecommitdiff
path: root/libpod/events/config.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-15 06:02:02 -0400
committerGitHub <noreply@github.com>2022-04-15 06:02:02 -0400
commit92625eadc600c22897b8c6b2955eacc27a045f84 (patch)
tree3dff6828801c01f2e26d309919333aaa0181f6d4 /libpod/events/config.go
parentf2ab79cc02520fde565729727184767726bb09ce (diff)
parent3da3afa5764bcec2d50b219446579b5770051f32 (diff)
downloadpodman-92625eadc600c22897b8c6b2955eacc27a045f84.tar.gz
podman-92625eadc600c22897b8c6b2955eacc27a045f84.tar.bz2
podman-92625eadc600c22897b8c6b2955eacc27a045f84.zip
Merge pull request #13641 from nicrowe00/logfile
Add log rotation based on log size
Diffstat (limited to 'libpod/events/config.go')
-rw-r--r--libpod/events/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/events/config.go b/libpod/events/config.go
index 188d15578..35680a275 100644
--- a/libpod/events/config.go
+++ b/libpod/events/config.go
@@ -60,6 +60,8 @@ type EventerOptions struct {
// LogFilePath is the path to where the log file should reside if using
// the file logger
LogFilePath string
+ // LogFileMaxSize is the default limit used for rotating the log file
+ LogFileMaxSize uint64
}
// Eventer is the interface for journald or file event logging
@@ -171,6 +173,8 @@ const (
Restart Status = "restart"
// Restore ...
Restore Status = "restore"
+ // Rotate indicates that the log file was rotated
+ Rotate Status = "log-rotation"
// Save ...
Save Status = "save"
// Start ...