LoggerFileBackend - multiple levels in one file


I am trying to use LoggerFileBackend in my application. I understand that in order to fill a file with Logger.info I need to set level: :info. However, I was wondering if it’s possible to fill a file with more then just one level. For example hold Logger.info, Logger.error and Logger.warning in one file. I couldn’t find any information about it in documentation.

You specify the lowest level you want and get that and everything above.


That’s a very useful information, thanks!

Is there a way to exclude some levels?

:man_shrugging: The source code is only one small file, have a squiz.

1 Like