936 questions
2
votes
1
answer
67
views
Angle Embedder in Python Messing Up Logging Config
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 ...
0
votes
1
answer
87
views
Logging without year:month:day but with hours:minutes:seconds,milliseconds
I try to get logging setup
hours:minutes:seconds,milliseconds
Example: 11:28:51,284
Actually I get
2025-10-08 11:44:07,658
This is the source with which I try to do it:
# --- Logging Setup ---
# --- ...
2
votes
1
answer
74
views
Why are ERROR logging messages reflected in the INFO logging file?
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,
"...
0
votes
0
answers
44
views
Why is my Python logger placing log files in a completely different place from where I ask? [duplicate]
(Edit: skip to the end, this is all just context. I found the core of the issue later)
I'm writing a Python UI program that I aim to compile to a .exe with pyinstaller, and for that reason I wish to ...
1
vote
2
answers
107
views
logger from Jupyter notebook: does not work unless calling the root logger at least once
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....
0
votes
1
answer
81
views
How can I convert python dictionary to a json object with loggers in snowflake event table
I have a snowflake event table created. The below code inserts log records into event table.
import snowflake.snowpark as snowpark
import logging
def main(session: snowpark.Session):
LOGGER = ...
1
vote
0
answers
60
views
Is there a reason not to replace the default logging.Handler lock with a multiprocessing.RLock to synchronize multiprocess logging
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 ...
0
votes
0
answers
78
views
Assert a logger writes to stdout
I'm trying to assert the fact that my loggers writes to stdout, but I can't get it to work. I ran the logger in a python file to make sure it outputs something in the standard output.
So far, I can ...
3
votes
1
answer
92
views
How to prevent error on shutdown with Logging Handler / QObject?
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 ...
0
votes
1
answer
97
views
fluentd config for a simple Python logging format
My python flask/Quart app has the following log format:
## 2025-04-04 05:16:07 INFO Running app...
How can I configure the <source> of fluentd config? I have tried:
<source>
...
1
vote
1
answer
308
views
PySide6 signal not emitting properly when passed to decorator
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 ...
0
votes
0
answers
26
views
Controlling from the top the verbosity/logging level in unittest.TextTestRunner?
I would like to change via command-line the logging level of my unit tests - I am talking of the logging level, which means the amount of info that can help me debugging a module that I am testing (...
0
votes
0
answers
35
views
How to write logs with the current date and time to a Python file and use Yaml configuration file
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__)
...
1
vote
2
answers
67
views
Is there a way to remove stack traces in python log handlers using filters or some other mechanism when calling Logger.exception()?
I know the subject sounds counter-intuitive but bear with me.
My goal is to have two rotating file log handlers, mostly for logger.exception() calls, one that includes stack traces and one that doesn'...
0
votes
0
answers
37
views
How to omit exc_info from logs when using coloredlogs in Python?
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?
...