loguru
loguru copied to clipboard
Python logging made (stupidly) simple
Hi Delgan, I've run into issues integrating with another lib that recently moved their logging to Loguru from the stdlib. For reference I'm referring to the [napalm](https://github.com/napalm-automation/napalm) dependency [ciscoconfparse](https://github.com/mpenning/ciscoconfparse). I've...
I recently started to use loguru and it's amazing ! But sentry too is amazing ! It would be nice to have some integration, at least at the documentation level....
now i got a new error, ``` File "/home/ronaldinho/xxx/xxx/venv/lib/python3.9/site-packages/loguru/_logger.py", line 939, in add handler = Handler( File "/home/ronaldinho/xxx/xxx/venv/lib/python3.9/site-packages/loguru/_handler.py", line 86, in __init__ self._queue = multiprocessing.SimpleQueue() File "/home/ronaldinho/.pyenv/versions/3.9.4/lib/python3.9/multiprocessing/context.py", line 113, in...
l got error sometimes, but not 100% ``` --- Logging error in Loguru Handler #1 --- Record was: None Traceback (most recent call last): File "C:\Users\Ronaldinho\.virtualenvs\xxx-5Vbn2Ffj\lib\site-packages\loguru\_handler.py", line 270, in _queued_writer...
``` python logger_a = logger.bind(name="a") logger_a.remove() logger_a.add("specific.log") logger_b = logger.bind(name="b") logger_a.info("Message A") logger_b.info("Message B") logger.info("test") ``` i mean to get a logger for specific.log with some special format, but when...
I use win10 + python3.6 + loguru-0.5.3 my code is: ``` import time from loguru import logger from concurrent.futures import ProcessPoolExecutor logger.remove(handler_id=None) logger.add("./log_files/loguru-test1.log",enqueue=True,rotation="10000 KB") def f(): for i in range(200000):...
I have a situation where I want to log something only once. It would be nice to have some `logger.opt(once=True)`. For example: ```python def fetch_document(...): # Repeatedly called document =...
--- Logging error in Loguru Handler #0 --- Record was: {'elapsed': datetime.timedelta(microseconds=519611), 'exception': None, 'extra': {}, 'file': (name='login_test.py', path='C:\\Users\\Desktop\\test\\tepdemo\\tepdemo070\\tests\\sample\\login_test.py'), 'function': 'test_login', 'level': (name='INFO', no=20, icon='ℹ️'), 'line': 8, 'message': 'login.token', 'module':...
Hi, in some methods of a class I need to always log a set of values together with the message. But this should happen only in those methods. I think...
I'm aware I could just be misusing loguru, but have noticed some non-intuitive behavior around 'rotation'. I'm running: `Python 3.7.6 (default, Feb 26 2020, 20:54:15) [GCC 7.3.1 20180712 (Red Hat...