With:
app.run(host=API_HOST, port=PORT, sock=None, debug=False, workers=API_WORKERS, log_config=None)
app = Sanic(__name__)
File "/usr/local/anaconda/envs/proj/lib/python3.6/site-packages/sanic/app.py", line 33, in __init__
logging.config.dictConfig(log_config)
File "/usr/local/anaconda/envs/proj/lib/python3.6/logging/config.py", line 795, in dictConfig
dictConfigClass(config).configure()
File "/usr/local/anaconda/envs/proj/lib/python3.6/logging/config.py", line 566, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'accessTimedRotatingFile': [Errno 13] Permission denied: '/access.log'
Same here..
Looks like it's trying to create that at the host root folder
Actually, it shouldn't create any log file at all.
I can't reproduce this. Can one of you give the full example you're using? Also the sanic version:
import sanic
sanic.__version__
'0.5.4'
Hi @r0fls, see this repo: https://github.com/woutor/sanic-logging
+1