Skip to main content

Questions tagged [logging]

Computer data logging is the process of recording events in a computer program, usually with a certain scope, in order to provide an audit trail that can be used to understand the activity of the system and to diagnose problems.

2 votes
1 answer
138 views

Suppose you have an application and you have an APM platform like Datadog or Application Insights that you use to monitor the performance and the inner workings of your application. Sometimes, there ...
Enrico Massone's user avatar
0 votes
4 answers
274 views

In a certain software project I'm involved with, (one or more) of the executables which get built to write logs, and it is customary/expected for those logs to include some sort of tag or version ...
einpoklum's user avatar
  • 2,808
1 vote
4 answers
466 views

The words "log" and "trace" are used regularly for describing information, written to an external file during execution of a program, but is there a fix and firm definition? Some ...
Dominique's user avatar
  • 1,844
1 vote
3 answers
630 views

I have reviewed this, but it doesn't seem to address what I'm asking here. https://stackoverflow.com/questions/15727420/using-logging-in-multiple-modules I want to have multiple programs call the same ...
NealWalters's user avatar
11 votes
8 answers
7k views

I understand that log file rotation is changing the log file you used when (1) one gets big enough or (2) at EOD, but I'm not sure I understand the reason for (1). I have never had any issues with ...
user129393192's user avatar
2 votes
1 answer
401 views

When you define a class, is inheriting a logger such as log4cxx a good design? Assume I am defining a class called MyClass. When I want a logger, I use a pointer to an abstract logger class as a ...
Dhammika Wijesundera's user avatar
0 votes
0 answers
289 views

I would like to be able to build up a log of user activities, capturing data such as who they were, where they logged in from, what activity did they take, and what data did they change (both before ...
David Keaveny's user avatar
2 votes
2 answers
646 views

Generally print statements are frowned upon in favor to logging. But are there any situations where I should prefer using print statements? In a interactive command line application, if I ask for user ...
Sourav Kannantha B's user avatar
0 votes
1 answer
188 views

In my company, we use a separate cron server to run mission-critical background jobs that run on a single ec2 instance: the whole platform is then vulnerable to anything going wrong on this instance. ...
friday-json's user avatar
-1 votes
1 answer
226 views

In my library I've got a Logger class that is a wrapper around spdlog, that I use internally for logging. Logging is enabled by default in Debug builds and disabled in Release builds, moreover user ...
RafalMaziejuk's user avatar
0 votes
1 answer
111 views

We have a .NET 6 application that consists of a REST API running in Azure App Service, and long-running background jobs hosted in Docker containers. These jobs are triggered by messages in a message ...
hingst's user avatar
  • 29
0 votes
1 answer
179 views

I am wanting to enhance a system to execute various background tasks (primarily data importation). In order to provide data for support, analysis and job status generally, I had been thinking of ...
Robert Brown's user avatar
25 votes
5 answers
9k views

Over and over again we're told, "globals are bad" and with good reason. However, I'm working with a logger that needs to be accessible everywhere in the program. Why shouldn't I create a ...
StaticMethod's user avatar
0 votes
1 answer
601 views

I've created a backend following a microservices architecture and now I need to implement logging. my understanding After reading some articles about this topic, I've listed below some "pretty ...
Big_Boulard's user avatar
-3 votes
2 answers
110 views

Cross-posted from stats stackexchange Say I have a logging utility in my application that I use for recording timestamped diagnostic log messages. I want to add tracking of some performance metrics to ...
user3716267's user avatar

15 30 50 per page
1
2 3 4 5
19