From 363d433a5dac141020cef4f698f60644fe4a202c Mon Sep 17 00:00:00 2001 From: Daniel Weber <37300320+danielweber2018@users.noreply.github.com> Date: Fri, 10 Mar 2023 15:31:48 +0100 Subject: logfile: exhance internal dlt logging by introducing size limits (#369) Enhance dlt logging such that multiple files are used as it is done for the offline traces. Add limit-specific config values for logging. For this purpose the pattern of index-based file names is used only. This approach of logging to multiple files and rotating in order to keep the limits ensures that dlt logs take care of available space on the underlying file system and do not grow infinitely. Signed-off-by: Daniel Weber Co-authored-by: Oleg Tropmann --- doc/dlt.conf.5.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc') diff --git a/doc/dlt.conf.5.md b/doc/dlt.conf.5.md index aeb2dfc..8090438 100644 --- a/doc/dlt.conf.5.md +++ b/doc/dlt.conf.5.md @@ -79,6 +79,26 @@ If LoggingMode is set to 2 logs are written to the file path given here. Default: /tmp/dlt.log +## EnableLoggingFileLimit + +Only relevant for logging in file (LoggingMode = 2). +If EnableLoggingFileLimit is set to 0, the daemon logs to one logging file without any size limit. +If EnableLoggingFileLimit is set to 1, the daemon considers the size limits configured by LoggingFileSize and LoggingFileMaxSize. If the limits are configured accordingly, multiple log files are used. + + Default: 0 + +## LoggingFileSize + +Only considered for logging in file (LoggingMode = 2) and EnableLoggingFileLimit = 1. Maximum size in bytes of one logging file. + + Default: 250000 + +## LoggingFileMaxSize + +Only considered for logging in file (LoggingMode = 2) and EnableLoggingFileLimit = 1. Maximum size in bytes of all logging files. + + Default: 1000000 + ## TimeOutOnSend Socket timeout in seconds for sending to clients. -- cgit v1.2.1