I'm writing a Django-based webapp that imports a Cocoa framework via PyObjC. The Cocoa framework has NSLog()
littered all through it and while I can see them when running the Django server in non-daemon mode, as soon as I go to daemon I simply lose all this useful NSLog()
output.
Is there any easy way to get NSLog stuff to bubble up into the Python logging
module's world so it can be merged in with the log messages being emitted by the actual Python code?
Did a little Googling and it seems like you might have to redirect stderr and somehow suck it back into Python in order to achieve this, which would be kind of a bummer ...
Any help much appreciated.