We can use printk to send debug message in kernal driver. I have a user mode AP that call kernal driver. I would like to output user mode AP debug message with kernal mode driver at the same time. How to do that?
...
I can't get my head around Python's logging module. My needs are very simple: I just want to log everything to syslog. After reading documentation I came up with this simple test script:
import logging
import logging.handlers
my_logger = logging.getLogger('MyLogger')
my_logger.setLevel(logging.DEBUG)
handler = logging.handlers.SysLogH...
I'm very new playing with syslog.
We have decide to use syslog to track some especial events on our Rails application.
The point is that I don't want to use the default /var/log/system.log file but use a custom one like /var/log/myapp_events.log.
I see that for that I have to define my own facility into the /etc/syslog.conf like this:...