Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

I am struggling with my logging dataflow. I have fluentbit running a syslog server on localhost to fetch syslog logging. All of that is sent to a Apache Pulsar. When I look at the output I receive it ...
Tristan's user avatar
2 votes
1 answer
103 views

I have a FastAPI service which is using granian with 6 workers. I noticed that I'm losing information from logs, there are requests being made, however the rotated logs are missing records for these ...
Geo48's user avatar
  • 464
0 votes
0 answers
30 views

I am following a Python tutorial and trying to use logging.config.fileConfig() to load a configuration file. Even though I have a [formatters] section in my logging.conf, I receive a KeyError: '...
remunity's user avatar
Tooling
0 votes
0 replies
99 views

Current spring implementation of structured logging with ECS format creates object "service" with fields: name, version, environment, node I would like to add field "id" to the ...
abc12331231's user avatar
3 votes
1 answer
72 views

I want to implement wide logging with Python's structlog. I also want to provide some unit tests for that and I'm really struggling with how to use structlog with underlying stdlib logging. In general ...
novice's user avatar
  • 83
Tooling
0 votes
4 replies
81 views

I'm working on some Azure VMs (a mix of Linux and Windows OS) and would like to set up a KQL script that can check for the presence of a named file (e.g. gold_image.dat) in a specific directory on ...
hitman126's user avatar
  • 969
0 votes
1 answer
46 views

I've just updated my code for logging to application insights in my project to use the OpenTelementry SDKs, and for some reason I cant get the filtration of 404s Http status codes to work for stuff ...
H4p7ic's user avatar
  • 1,943
-3 votes
1 answer
87 views

I have a python program that is writing a log. The idea is to tail the log so I know what's going on in the program while it is running. But no data ever comes until the python program exits. Even if ...
enigmaticPhysicist's user avatar
0 votes
0 answers
52 views

I use the diagnostics.trace functionality for logging. I've the followin code in a dotnet framework 4.8.1 windows forms app. private static readonly TraceSource _trace = new TraceSource("...
Rainier de Groot's user avatar
0 votes
0 answers
34 views

I have a rails application that uses mongoid. In development, I have a custom logger that basically logs the backtrace in a visual hierarchy. I'd like to roll this into production with the option ...
user1130176's user avatar
  • 1,856
Best practices
0 votes
8 replies
128 views

I'm trying to figure out how to implement Logging in my ASP.NET Core 9.0 Web API. I don't like having to inject a logger object in every service class, so have been exploring different ways of ...
MRichards's user avatar
  • 173
Best practices
1 vote
5 replies
108 views

I want to log all changes to existing data on the database which is done via set log_statement to 'mod'; I also want to capture slowing running queries on top of this, e.g. set ...
jrlevi's user avatar
  • 23
0 votes
0 answers
39 views

I am trying to build analytics for my mongo logger. In development mode, I have a custom mongo logger that backtracers the caller so I can see exactly which call triggered a db request. The problem ...
user1130176's user avatar
  • 1,856
Best practices
0 votes
1 replies
74 views

After replicating services across multiple instances (replicas), we need to figure out what additional fields are required to identify instances in metrics, traces, logs, and health checks. For ...
DimaVmkMsu's user avatar
Tooling
1 vote
0 replies
68 views

I am architecting a "Bring Your Own Sink" logging platform. The goal is to allow users to register their own external endpoints (OTLP, S3, Webhooks), and have my platform route their ...
Janman's user avatar
  • 1,050
0 votes
1 answer
46 views

I use ZooKeeperNetEx.dll along side the Confluent.Kafka in my .NET app. Every time I run the app, a log file with this naming "ZK.2026-02-05-10.06.05.601Z" is generated. I tried to use use ...
bany365's user avatar
  • 21
1 vote
1 answer
140 views

To access a web API, I need to authenticate to the specific API first. In this use case, it concerns a Cyberark API method to: authenticate a user to Privilege Cloud and returns a token that can be ...
iRon's user avatar
  • 24.8k
Best practices
1 vote
11 replies
6k views

I'm hesitating whether the Logger Write method should be marked as const: class Logger { public: // Write log message to the terminal void Write(const string& msg) const; ... }; In this ...
Israel Yankelovich's user avatar
0 votes
0 answers
32 views

I was looking for some help understanding stderr and stdout logging using the lsf executor. I am having trouble getting the jobnames changed and getting the stderr and stdout files to be written ...
bwubb's user avatar
  • 23
0 votes
1 answer
84 views

I’m running a Laravel application using the dunglas/frankenphp:1.9-php8.4-alpine Docker image and deploying it on Kubernetes. Logs are written to stderr and collected by Google Cloud’s built-in per-...
Radhe9254's user avatar
  • 198
Advice
0 votes
2 replies
40 views

I have a log table in PostgreSQL (people_log) that tracks changes in my main tables. The problem is, the log table can grow very large, so I cannot keep all the data in the table indefinitely. I want ...
f.n's user avatar
  • 53
0 votes
0 answers
73 views

Is there a way to have a custom configuration when using Slf4j without the need to create a custom logger? Let's say I have a controller, service, or any format of a class, I am using SLF4J for ...
ctrleno's user avatar
Advice
0 votes
0 replies
17 views

I have a livelink/metahuman project that generates huge amounts of logs - all needed. The executable is expected to run for prolonged amounts of time. Hence, I need to rotate logs of the running ...
Muslimbek Abduganiev's user avatar
Advice
0 votes
0 replies
22 views

We're using Nlog version 2.0.0.0 and create our text log files on a daily basis. The naming would be Logfile_${machinename}_${shortdate}.log. The problem is that the size of one log file in one day ...
004-Bond's user avatar
2 votes
1 answer
123 views

I have a configuration for log4j2 as a property file which looks like this: log4j2.properties property.pattern = %d [%t] %F %-5L %-5p %c - %m%n appender.0.type = Console appender.0.name = ...
maxpa1n87's user avatar
3 votes
1 answer
76 views

The Python documentation states that logging.lastResort is A “handler of last resort” [...] writing to sys.stderr with a level of WARNING, and is used to handle logging events in the absence of any ...
robertspierre's user avatar
1 vote
1 answer
157 views

Is there a way to have the logs in VS Code Terminal (not a log file) from running an application color-coded according to log severity? For example: INFO in white, ERROR in red, WARN in yellow. I am ...
Ayokunle's user avatar
  • 101
0 votes
1 answer
49 views

.handlers=<handler> handlers=<handler> What is the difference between these two configrations. What happend if only "handlers" is configured without ".handler" I tested,...
Siva-ss18's user avatar
-3 votes
1 answer
73 views

I have a python project with this structure: Project-Root/ |-- script.py |-- utils/ | |-- utils.py | |-- init.py My script.py looks like this - I import logging, setup an output file, import a ...
Ev09's user avatar
  • 25
0 votes
1 answer
129 views

I have a multi-process application (one orchestrator and multiple workers) where all processes write to the same log file using NLog 6. The log file is configured to be archived: daily (ArchiveEvery=...
Christopher Fontaine's user avatar
Best practices
0 votes
4 replies
180 views

In SQL Server, I have a stored procedure that returns some sensitive data to the client, and logs that fact into a log table. The stored procedure is executed in a transaction controlled by the client,...
Branko Dimitrijevic's user avatar
Best practices
0 votes
15 replies
6k views

I design my utility function not to throw an exception, as I don't want to deal with exception and to be able to use this function in a while loop. I also try to follow all the best practices I've ...
LifeIsAscam's user avatar
0 votes
1 answer
96 views

I'm looking for help to suppress very annoying logging - something I am not getting about configuration. In ACA Log stream I keep seeing these log entries: 2025-12-17T15:54:39.257462600Z 2025-12-17 15:...
Andrey's user avatar
  • 498
Advice
0 votes
1 replies
57 views

I got an requirement to configure logging in Fusion Cache (only L1), so that when fail safe is enabled and upon some factory issue we start getting stale values this fact is logged as warn. As this ...
Ceres's user avatar
  • 73
2 votes
4 answers
263 views

I'd like to be able to make a call (e.g., to an API) from within an Azure function, and make a log entry if it is taking longer than n milliseconds, but not interrupt or end the call. Note this is not ...
Jesse Liberty's user avatar
1 vote
1 answer
128 views

I am missing some kind of best practice for implementation of PHP dependency injection and the PSR LoggerInterface. Currently (without dependency injection) I have created my own LoggerFactory with ...
Michael Risbjerg Amstrup's user avatar
1 vote
1 answer
79 views

Python loggers can be organized in a namespace hierarchy (e.g. foo.bar.baz). If a python module uses the native logging module, can I configure logging in my main program such that all logging ...
goweon's user avatar
  • 1,450
0 votes
1 answer
165 views

I am following the instructions provided in Google's Log requests and responses documentation for enabling these logs. We previously had Vertex AI Admin permissions set and enabling/disabling logging ...
JLuxton's user avatar
  • 491
1 vote
0 answers
118 views

The logs received by fluent-bit(forward input) { "date": 1765435213, "log": "{\"time\": \"2025-12-11T06:40:13+00:00\",\"tcpConnectionId\": \&...
si xiao's user avatar
  • 11
2 votes
1 answer
546 views

I have an ASP.NET Core web application running as an Azure App Service. Recently I have noticed our costs for Application Insights has rocketed up. I think this might be due to upgrading to a newer ...
Paul Houghton's user avatar
Best practices
0 votes
2 replies
52 views

If I define a LoggingRoutePolicy extending RoutePolicySupport , how can I associate it with routes that I have instantiated from a template? public class LoggingRoutePolicy extends RoutePolicySupport {...
Cantillon's user avatar
  • 1,658
1 vote
0 answers
131 views

I'm using the DuckDB CLI, version 1.4.2 on macOS. The plan is to use duckdb as a part of a CLI pipeline, not from inside of a Python script, etc. I've already got the tooling to build out the script ...
Morris de Oryx's user avatar
10 votes
1 answer
3k views

I'm in the process of upgrading to .NET 10 and I ran into to this compiler suggestion: CA1873 Evaluation of this argument may be expensive and unnecessary if logging is disabled It references to ...
Maarten Kieft's user avatar
0 votes
1 answer
100 views

I am developing a console application which will run as an Azure Container App. How do I write application logs such that they can be reviewed and monitored using Azure Monitor? I have searched for ...
joki's user avatar
  • 1
Best practices
0 votes
1 replies
114 views

Disclaimer: The question below was met with quite a bit of critisicm. The only reason I did not delete this question is becasue stackoverflow doesnt let me after somebody reacted on it. Also the code ...
Maarten's user avatar
  • 171
Best practices
0 votes
1 replies
54 views

I am wondering how I am supposed to setup a logger for python projects. It makes sense that I can setup a logger for the main file in a project Example: # main.py logger = logging.getLogger('...
trey hannam's user avatar
1 vote
0 answers
150 views

Here is a snippet of how logging is done in my test script: logging.basicConfig( level=logging.INFO, format="%(asctime)s %(message)s", datefmt="%Y%m%d %H:%M:%S", ...
Qiang Xu's user avatar
  • 4,921
3 votes
2 answers
130 views

So, for context, I have started writing a small HTTP-Server for learning purposes. Currently, I have 2 modules: server and logger. The server module uses the logger I wrote internally for logging ...
Puscas Raul's user avatar
1 vote
0 answers
80 views

I have a typed HttpClient, added to DI like this: builder.Services .AddHttpClient<IExternalApiClient, ExternalApiClient>() .ConfigurePrimaryHttpMessageHandler(() => ...
Eugeniy  Maksimov's user avatar
0 votes
2 answers
226 views

I am having an issue formatting the date in the filename using the appsettings.json file for a C# worker service. My current config looks like this: Serilog": { "WriteTo": [ ...
Nathan's user avatar
  • 21

1
2 3 4 5
834