Need clarification including logging in Django

Hello! I would like to implement proper logging in my Django app. So far I have read the docs and few articles I found but I am not sure if I understand correctly how to use the loggers.

Examples frequently show code like this:

logger = logging.getLogger(__name__)

This should get me logger with the name of the module, which is nice, but I don’t understand how to configure its handlers and level.

On the other hand other examples show LOGGING configuration in settings.py where you define your loggers by name and can attach different handlers.

So the real usage maybe consists of having a helper file with function that will give me handler with correct configuration? Or am I missing something?

I don’t think I need to log by specific module but it would be useful to somehow know from where was particular message logged.

Thanks for help!