-
Like Is this not possible? and what should we use instead? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@lapinvert logging configuration in Granian follows the You can put such configuration in a JSON file and point Granian to it using the |
Beta Was this translation helpful? Give feedback.
@lapinvert logging configuration in Granian follows the
logging
standard library configuration.You just need to customise the default handlers to use files in place of the stdout.
You can put such configuration in a JSON file and point Granian to it using the
--log-config
CLI option, or, in case you runGranian
from Python, define adict
for that and pass it to theGranian
class using thelog_dictconfig
parameter (https://github.com/emmett-framework/granian/blob/master/granian/server.py#L89).