diff options
author | Daniel Weber <37300320+danielweber2018@users.noreply.github.com> | 2023-03-10 15:31:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 15:31:48 +0100 |
commit | 363d433a5dac141020cef4f698f60644fe4a202c (patch) | |
tree | 6d21d2447309ca9e4a76fb3c70d36b216d1ef753 /src/console | |
parent | 3b8a82ffae22c51bb02c11e669754983e8aabd5a (diff) | |
download | DLT-daemon-363d433a5dac141020cef4f698f60644fe4a202c.tar.gz |
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 <daniel.w.weber@daimler.com>
Co-authored-by: Oleg Tropmann <oleg.tropmann@daimler.com>
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/dlt-convert.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/console/dlt-convert.c b/src/console/dlt-convert.c index b97a11f..8c72b60 100644 --- a/src/console/dlt-convert.c +++ b/src/console/dlt-convert.c @@ -126,17 +126,6 @@ void usage() printf(" -t Handling input compressed files (tar.gz)\n"); } -char *get_filename_ext(const char *filename) -{ - if (filename == NULL) - fprintf(stderr, "ERROR: %s: invalid arguments\n", __FUNCTION__); - - char *dot = strrchr(filename, '.'); - if(!dot || dot == filename) - return ""; - return dot + 1; -} - void empty_dir(const char *dir) { struct dirent **files = { 0 }; |