Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
60 views

I wrote another question on this earlier, but could not pinpoint the issue on my side, here, I am giving a minimal reproducible code. System Angle version 0.5.6 UV 0.8.22 Python 3.12 Ubuntu 24.04 I ...
Della's user avatar
  • 1,730
2 votes
1 answer
66 views

I wanted to print INFO and ERROR file separately in Python logging. When I use ERROR level, it's writing into both LEVEL defined files. log_config.json: { "version": 1, "...
Veera V's user avatar
  • 135
1 vote
2 answers
105 views

I would like to see the logging produced by some Python code from within a Jupyter notebook (logging version '0.5.1.2', python 3.12). If I run the following code: import logging logger = logging....
SeF's user avatar
  • 4,299
1 vote
0 answers
56 views

I've got some code that, for reasons not germane to the problem at hand: Must write very large log messages Must write them from multiple multiprocessing worker processes Must not interleave the logs ...
ShadowRanger's user avatar
3 votes
1 answer
85 views

In order to show logging messages in a PyQt GUI, I'm using a custom logging handler that sends the logRecord as a pyqtSignal. This handler inherits from both QObject and logging.Handler. This works as ...
mahkitah's user avatar
  • 1,026
1 vote
1 answer
294 views

I have this decorator in python 3.11 that sends a signal encoding the arguments to a function call that it decorates, here: def register_action(signal=None): def decorator(func): def ...
KBriggs's user avatar
  • 1,488
0 votes
0 answers
34 views

import logging import os from pathlib import Path from pydantic import BaseModel, Field, field_validator # Configure logging logging.basicConfig(level=logging.INFO) log = logging.getLogger(__name__) ...
Cthulhu's Rage's user avatar
0 votes
0 answers
30 views

See this question about sending exc_info to a log file but not to the console using Python's logging module. I want the exact same behavior, except that I'm using coloredlogs. How can I do this? ...
kviLL's user avatar
  • 444
0 votes
1 answer
281 views

I have this application and app.exception_handler correctly handles the exceptions that arise. There is one problem though, i.e., it does not stop the exception to be displayed in the stdout. Is there ...
Javi Torre's user avatar
0 votes
1 answer
53 views

So the situation is the following: multiple internal packages written in python which do rarely log and if only use, these use the basic python logging module, since this is as far as I have read ...
Code_beginner's user avatar
0 votes
2 answers
82 views

Consider the following minimal setup: /mymodule ├── __init__.py ├── main.py └── worker.py __init__.py is empty main.py: import sys import logging import multiprocessing from test.worker import ...
Art Gertner's user avatar
0 votes
3 answers
59 views

I'm trying to log every time the function "Hello" finds 1.png. Is there a way to do this using counter or some other method, it would then log it into "anomaly.log" using logging, ...
D3AD_SHOT's user avatar
1 vote
1 answer
45 views

Here is a MCVE, very simple piece of code creating a QMainWindow, with a central empty QWidget: import sys from PyQt5.QtWidgets import QWidget class MyWidget(QWidget): """QWidget ...
jpo38's user avatar
  • 21.9k
1 vote
1 answer
61 views

I am currently developing a core utils package where I want to set some logging properties (I know that this is not best practice, but it´s for interal purposes and intended to generate logs). When I ...
Bennimi's user avatar
  • 526
0 votes
0 answers
83 views

Im using loguru and watch for file creation in a folder. I have two loguru logger one output to the console and one output to a log file logger.add(os.path.join(log_dir, "loghandler_{time:...
JJJason's user avatar
-3 votes
2 answers
250 views

I am using python logging to write debug information to a file and print it to my screen : logger=logging.getLogger() logger.setLevel(logging.INFO) file_handler = logging.FileHandler("std.log&...
FábioRB's user avatar
  • 457
0 votes
1 answer
78 views

I have a python class wrapper to the logging functionality. My problem with these solutions is the logging options "%(asctime)s:[%(filename)s->%(funcName)s():%(lineno)s] %(levelname)s>> %...
Edgar O's user avatar
  • 17
0 votes
1 answer
65 views

Considering the following errornous function: def inner(): raise Exception("message") If I run the function I get an error like: Traceback (most recent call last): File "/...
paul23's user avatar
  • 9,637
-1 votes
2 answers
62 views

I am stuck at situation where i have to emit logs in different format based on condition like security events, normal software operation events etc to the std out. example lets say security events ...
abak1802's user avatar
  • 107
4 votes
1 answer
60 views

I am trying to write a custom logging.Logger subclass which is mostly working, but I run into issues when trying to use a logging.Formatter that includes the interpolated value %(filename) in the ...
OmniZ's user avatar
  • 143
3 votes
2 answers
125 views

When using Python logging, asctime is very handy in looking at the hotspots in code. However, I have to decode or post-process the log to show incremental time taken between each log message. logging....
Krishna's user avatar
  • 1,632
0 votes
1 answer
156 views

I have a PySide6 application that uses threading and logging. My logger has a custom handler defined below, which pops up a messagebox that requires user attention for higher level logging events: ...
KBriggs's user avatar
  • 1,488
1 vote
1 answer
54 views

logging.basicConfig( filename=f"{output_location}/log.txt", format="{asctime} - {levelname} - {filename}: {message}", datefmt = "%d %b %H:%M", ...
AlphabetsAlphabets's user avatar
-1 votes
1 answer
36 views

Don't the different logging levels in Python (v3.11.4) logging work for a file and for telegrams? So the logs of the WARNING level and above go both to the Telegram and to the file, and the logs of ...
8j0rn's user avatar
  • 1
0 votes
0 answers
393 views

I am currently trying to log using the SMTPHandler class from Python's logging module. The logger is instantiated just fine, but fails when calling _socket.getaddrinfo even though it is being passed ...
dabo_tusev's user avatar

1
2 3 4 5
19