mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-12-03 12:11:01 +05:30
Pranav Jerry
4ea53e5a35
- New dependency -- python-systemd for logging to journal - Changed service file to start after networkd - New submodule which contains "logger" for use by all other submodules - Removed bus argument from Device and Adapter classes
17 lines
295 B
Python
17 lines
295 B
Python
#!/usr/bin/env python3
|
|
|
|
"""
|
|
log.py
|
|
------
|
|
|
|
This file contains the logger object, which is required for logging
|
|
to the systemd journal
|
|
"""
|
|
|
|
import logging
|
|
from systemd import journal
|
|
|
|
logger = logging.getLogger(__name__)
|
|
logger.setLevel(logging.DEBUG)
|
|
logger.addHandler(journal.JournalHandler())
|