41,728 questions
0
votes
1
answer
57
views
QueueListener breaks logging level filter?
It appears that logging.handlers.QueueHandler/.QueueListener is breaking the .setLevel of an attached logging.FileHandler in Python 3.12.9 on Windows.
Running the following minimal example results in ...
0
votes
1
answer
88
views
Limit argument length in console output while keeping full length in log files using NLog
I have configured NLog (5.3.4) in my ASP.NET Core project (.NET 5.0) and am using ILogger from Microsoft.Extensions.Logging which is injected through DI. Now I'm logging messages with parameters like ...
0
votes
1
answer
110
views
Why are Serilog LogWarning messages labeled as Information in Azure App Service Log Stream?
I'm using Serilog in an ASP.NET Core Web API app deployed to Azure App Service.
My logger configuration includes writing to the console with CompactJsonFormatter:
public static class ...
1
vote
0
answers
152
views
Async-aware structured logging in FastAPI with per-request context and daily log rotation in python [duplicate]
I'm building a production grade FastAPI app and would like to implement a structured logging system that:
Captures per request context, like request ID, path, and method.
Supports asynchronous ...
0
votes
0
answers
54
views
Is there a way to pass a JWT to Airflow's SparkKubernetesOperator
I am using SparkKubernetesOperator to submit my SparkApplication (via the CRD manifest file) to our onprem Kubernetes cluster.
The cluster authenticates our request via the kube api.
We have defined a ...
0
votes
0
answers
21
views
How to use Dev Container service's Docker logs in Visual Studio Code Output tab?
I have a setup that has more or less the following:
devcontainer.json based on Docker Compose:
{
"name": "Frames API backend",
"dockerComposeFile": [
&...
0
votes
1
answer
121
views
Azure App insights daily cap reached without data?
We have Azure App insights with 4 GB set as a daily cap. And it started to report that the daily cap is reached regularly.
At the same time, based on a query for ingestion we see that only 2.5 GB of ...
1
vote
1
answer
106
views
Snowflake SnowSQL debug command equivalent to echo/print
I'm discovering Snowflake, and am currently using a few SET commands to set session variables values.
Not going too much into the details (because I don't want anybody to focus on this part), I ...
1
vote
0
answers
53
views
How to output nested json objects in log-format using the %{+json}o flag
I am trying to output some nested json in my custom log format. My current log-format is (pretty printed):
{
"type":"http",
"datetime_gmt":"%T",
"...
1
vote
1
answer
56
views
How to remove progress bar in targets package in R
In the targets package in R, does anyone know if it's possible to remove the progress when running tar_make(). I plan to save the logs as a text file but since the progress bar is being printed every ...
3
votes
1
answer
73
views
Attributes added by Handler middleware not appearing when using Logger.With
I'm using Go's standard log/slog package and have created a custom handler middleware (ContextHandler) to automatically add request-scoped attributes (like session_id) from the context.Context to log ...
0
votes
0
answers
59
views
How do I capture an info response from the googledrive API to a text file using sink() in R?
I feel like this might be a really dumb question, but I've spent all day trying and failing to get it to work. I have a an R script that will be run automatically overnight, and in it I copy a file ...
0
votes
0
answers
50
views
Disable Raylib-J log messages
Is there a way to disable logging in raylib-j
INFO: Initializing raylib 4.2 INFO: Supported raylib modules: INFO: > rcore:..... loaded (mandatory) INFO: > rlgl:...... loaded (mandatory) ...
0
votes
2
answers
303
views
Loguru doesn't save logs to Databricks volume
I've added an external volume named "logs" to my Databricks Unity Catalog. Within a Databricks notebook I can verify that it exists (os.path.exists(path='/Volumes/my_catalog/schema_name/logs'...
3
votes
1
answer
125
views
JSch SSH Authentication Failure with Private Key (Auth fail error)
JSch Log [level 1]: Connecting to 10.***.150 port 22
JSch Log [level 1]: Connection established
JSch Log [level 1]: Remote version string: SSH-2.0-OpenSSH_8.7
JSch Log [level 1]: Local version string: ...
0
votes
1
answer
78
views
Airbyte GCP/GKE logging
I was looking at how stdout/stderr kubernetes pod logs are stored within gke.
My problem is storing Airbyte connectors log to GCP (Airbyte is part of a GKE cluster).
Unfortunately pod stdout/stderr is ...
0
votes
0
answers
33
views
Fluentd set tag to all records by field
I need fluentd to store logs in files by-host. This is fluent that got logs forwarded from other one in efk.
config
<source>
@type forward
port 24224
bind "0.0.0.0"
<...
0
votes
1
answer
91
views
How to turn off excessive debug log noise from Snowflake.Data nuget package in my .NET framework?
I use Snowflake.Data nuget package in my .NET 4.7.2 project. All the debug logs in the decompiled Snowflake.Data library (v4.3.0) are appearing in my application log which is too much. My application ...
1
vote
1
answer
277
views
Python > yfinance > yf.Ticker(symbol) throwing error when symbol not known
When using logging and yfinance, if one queries for a incorrect ticker name, they will get an error and I am struggling to shield the user from that error:
Code which triggers the error:
ticker = yf....
0
votes
1
answer
67
views
SAS log cpu/real time display format
In my SAS (version 9.4M8 for Windows) log, time elapsed (CPU time and real time) is by default displayed as x.xx seconds, i.e. to a precision of 10 milliseconds. In order to profile a program ...
3
votes
1
answer
251
views
How can I change std.log log level from the command line in Zig?
I'm using std.log in Zig and I want to change the log level (e.g. to .debug or .info) when running tests using the command line.
Is there a way to set the log level from zig build, for example like:
...
1
vote
0
answers
301
views
How to inject traceId into Serilog logs using OpenTelemetry in ASP.NET Core (Activity.Current is null)
I'm working on an ASP.NET Core application that uses OpenTelemetry for tracing and Serilog for logging. I'm exporting traces to Tempo and logs to Loki, both of which are then visualized in Grafana.
My ...
-1
votes
1
answer
63
views
Exclusive unix-socket write permissions for shared libraries
I have a logging application and shared library, that write to this application via unix socket.
I want to implement exclusive access of writing to logging application only for the dynamic library.
I ...
0
votes
0
answers
73
views
Is it possible to dynamically specify the log file name in Python?
I am attempting to move some of my programs from Perl to Python. Our Perl logging configuration has the following line:
# perl_log.conf
log4perl.appender.LOGFILE.filename= sub { return get_perl_log() ...
0
votes
1
answer
80
views
Promtail configuration for rotated log files in single filename
My promtail config is:
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://loki:3100/loki/api/v1/push
scrape_configs:
- ...