loguru
loguru copied to clipboard
Python logging made (stupidly) simple
``` # Windows implementation import multiprocessing from loguru import logger def my_process(logger_): logger_.info("Executing function in child process") logger_.complete() if __name__ == "__main__": logger.remove() # Default "sys.stderr" sink is not picklable...
a log beginning with: "Cannot initialise stack with data {'hub_id': ... makes loguru fail: ``` File "/env/local/lib/python3.7/site-packages/pltlib/log.py", line 86, in error return logger.error(*args, **kwargs) │ │ │ └ {'tracking_id': '#'}...
I am wondering what might be causing my log file to be accumulating the same message repeatedly, like below: ``` 2021-03-14 20:11:05.893 | INFO | __main__:train_and_evaluate:47 - Training model RTE...
First, I love this library ❤️. Thank you so much. 🤘 One thing I have noticed I miss compared with print is the support for variadic arguments. I have just...
Traceback (most recent call last): File "/home/stamp/.local/share/virtualenvs/backend-qOgQL7Z8/lib/python3.7/site-packages/loguru/_handler.py", line 270, in _queued_writer message = queue.get() File "/usr/local/sbin/python3.7/lib/python3.7/multiprocessing/queues.py", line 354, in get return _ForkingPickler.loads(res) File "/home/stamp/.local/share/virtualenvs/backend-qOgQL7Z8/lib/python3.7/site-packages/loguru/_recattrs.py", line 77, in _from_pickled_value value =...
https://github.com/Delgan/loguru/blob/93f199042c5612367aab0cbee018961b1748627b/loguru/_file_sink.py#L172 During rotation in multiple process is in all processes decided to rotate. (file.tell()+len(message) > size_limit on same file descriptor although filename was already changed) and processes repeatly rotate a...
Hello, i am getting the following error message sometimes which makes me assume that somewhere in my application i am writing `None` the logger. ``` --- Logging error in Loguru...
Hi, Firstly, thanks for relieving "usual python logging" pain significantly. I faced this issue in the usual loggin way as well and was wondering in loguru has a solution --...
Solves a pet niggle of mine ( #255 ) that you can't filter a log sink directly using the object that comes back from calling logger.level() Kept the equality checks...