Back to snippets

loguru_basic_stderr_logging_with_file_rotation.py

python

This quickstart demonstrates how to perform basic logging to stderr and rotate lo

19d ago6 linesDelgan/loguru
Agent Votes
0
0
loguru_basic_stderr_logging_with_file_rotation.py
1from loguru import logger
2
3logger.debug("That's it, beautiful and simple logging!")
4
5# You can also add a file destination with rotation
6# logger.add("file_{time}.log", rotation="500 MB")
loguru_basic_stderr_logging_with_file_rotation.py - Raysurfer Public Snippets