Help me understand please. I’m new in python. I’m writing WSGI app. And I want to turn loggining on. I do:
logger = logging.getLogger(__name__)
then I want to print something in log:
logger.exception("Some exception...")
Where it all stores? Only in console output or there is a file somewhere on the server? If so, where I can find this file?
Actually, you have to specify the file yourself, e.g. with logging.basicConfig():
Logging can be quite a complex matter sometimes, I’d suggest you read the HOWTO.