Forums

Where to write custom log files

Is there a recommended location for writing custom log files, or is this discouraged on PythonAnywhere? I'd like to write to /var/log/ but don't have access.

Hmm, that's a good question! /var/log is used by our web app logging system, and is on a different server to the one where your normal files are kept -- that's why you don't have write access to it.

I think personally I'd create a directory in my home directory for them -- so, in your case, you might use /home/GigLicker/logs.