How Sanic handles logging?

I dont see logging happening in Sanic code. Was wondering how it’s handled.

What kind of logging are you specifically referring to?

An application level logging. In other words, logs that help user debug issues.

sanic has two main loggers both defined in the https://github.com/huge-success/sanic/blob/master/sanic/log.py module, an error logger and an access logger. The application logs all of its information using those two loggers

1 Like