Debian Codegraph @

test/testdata/integration-tests/TEST-04-JOURNAL/TEST-04-JOURNAL.units/logs-filtering-syslog.py

raw
1 #!/usr/bin/python3
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3
4 import subprocess
5 import syslog
6
7 if __name__ == '__main__':
8 syslog.openlog(ident='logs-filtering', logoption=syslog.LOG_PID)
9 syslog.syslog(syslog.LOG_NOTICE, 'Logging from the service, and ~more~ foo bar')
10
11 subprocess.check_output(['journalctl', '--sync'], stdin=subprocess.DEVNULL, text=True)