Skip to content
Snippets Groups Projects

Add srt-logger tool

Merged Simon McVittie requested to merge wip/smcv/logger into main
10 files
+ 1530
8
Compare changes
  • Side-by-side
  • Inline
Files
10
  • By default, this tees output to a log file and its own standard error
    stream. It also optionally writes to the systemd Journal.
    
    The log file is written with a size limit: if it would become
    larger than its size limit, it's moved out of the way and logging resumes
    in a newly created file. This is similar to how the Steam client's
    internal logging in C++ code works. Log rotation is automatically
    disabled if more than one srt-logger process is trying to write to the
    same log, to avoid data loss.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
+ 9
1
@@ -147,7 +147,14 @@ endforeach
test_depends += executable(
'adverb',
'adverb.c',
dependencies : [glib, gio, gio_unix, libglnx_dep, json_glib, libsteamrt_dep],
dependencies : [
glib,
gio,
gio_unix,
libglnx_dep,
json_glib,
libsteamrt_static_dep,
],
include_directories : project_include_dirs,
install : get_option('installed_tests'),
install_dir : tests_dir,
@@ -502,6 +509,7 @@ if get_option('bin')
test_scripts += [
{'name': 'test-launcher.py', 'dbus': true, 'timeout': 90},
{'name': 'test-launcher.py', 'dbus': true, 'full_python': true, 'timeout': 90},
{'name': 'test-logger.py'},
]
endif
Loading