loguru icon indicating copy to clipboard operation
loguru copied to clipboard

Python logging made (stupidly) simple

Results 317 loguru issues
Sort by recently updated
recently updated
newest added

this is a code that I run on GCP: ``` import logging from google.cloud.logging_v2 import Client from google.cloud.logging_v2.handlers.handlers import CloudLoggingHandler from google.cloud.logging_v2.handlers import setup_logging client = Client() handler = CloudLoggingHandler(client,...

Hi! I wanted to share my experience with using loguru with Celery and gevent. Any feedback appreciated. We use Celery workers to do the heavy-lifting which includes calls to REST...

i have some questions about rotation i use this code `logger.add("call_logs.log", rotation="10s")` when i manually run the code over and over again. i find some logs logs appear in the...

question

I would like to create logs following styles API_Logs_20231204_00001.txt API_Logs_20231204_00002.txt API_Log_20231205_00001.txt and I rotate when it reaches 1MB My current code: ``` def get_log_dir(): root_dir = os.path.dirname(os.path.abspath(__file__)) log_dir = os.path.abspath(os.path.join(root_dir,...

I am struggling to understand how to create a custom serialize function for a custom format and still include contextual data whilst logging. The following will produce a log entry...

question

I saw that some people already asked for a Django example, but nobody provided a full example for Django. I also want to use Loguru for my Django 4.2 project,...

this print more 10 pages. 没有太多的价值 ![image](https://github.com/Delgan/loguru/assets/6077601/822cbe88-3b1c-4800-89b2-a7c9876bbd74)

Thanks for this awesome library. I would like to set the parent logger globally in a child process (spawn method) so I don't have to do that within all my...

feature

I have multiple threads in my program, each utilizing loguru for logging. I want to implement a mechanism where every 10 minutes, one of the threads performs a backup and...

### Problem Description: While utilizing the @logger.catch decorator from the loguru library, I encountered behavior that seems counterintuitive. As per the current implementation, if the reraise parameter is not explicitly...

enhancement