Closed areynold closed 11 years ago
Ideally, let's use standard logging functions so that it goes to syslog or wherever. Also, do we need this issue in all of the Linux projects? Where is logging actually happening? If it's happening all over the place, then we should probably add a logging function into commotion-linux-py and then have everything call that.
I use syslog for commotion-service-manager.
Which is totally the right way to go. I'm mostly concerned that there seems to be an issue identical to this one in all three python-based commotion-linux projects (commotion-linux-py, commotion-mesh-applet, and nm-dispatcher-olsrd), which implies to me that they're all using duplicate logging functionality. Seeking more clarification from @technosopher or @areynold before marking them all duplicates.
I've been in the process of doing everything described above for a while, and just finished overhaul all of the modules to use a unified logging function in commotion-linux-py that dumps all output to syslog with custom prefixes depending on what module produced it. The changes can be seen in the decompose branches of nm-dispatcher-olsrd and commotion-mesh-applet
Starting work on this now.
(This message brought to you by Hub board)
This work is complete.
(This message brought to you by Hub board)
This work is complete.
(This message brought to you by Hub board)
Log location should be moved from /tmp to linux standard /var/log