This repository is a test for python logging.
The purpose of this repository is to test if python logging works as expected.
The repository is not intended to be used in production.
- Execute main.py directly to your console
- Install service and execute it.
- Check logs in /var/log/syslog
Using main.py
$ python3 main.py
Execute install-service.sh
$ bash install-service.sh
$ sudo ln -s $PWD/logging.service /etc/systemd/system/logging.service
Enable the service
$ sudo systemctl enable logging.service
Reload services
$ sudo systemctl daemon-reload
Start the service
$ sudo systemctl start logging.service