Is there any documentation how to use logging in dbus services, so that the log goes to /var/log/dbus-sofarsolar ?
I tried to use /service/dbus-sofarsolar/log/run with the folloing contents:
#! /bin/sh exec 2>&1 exec multilog t s25000 n4 /var/log/dbus-sofarsolar
I tried:
1)
import logging logging.info("Testinfo")
2) sys.path.insert(1, os.path.join(os.path.dirname(__file__), './ext/velib_python')) from logger import setup_logging logger=setup_logging(debug=True) logger.info("Testinfo")
but nothing will be logged in the /var/log/dbus-sofarsolar directory
What is the correct way to use it?