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.

2votes
1answer
102views

Where to store application events used to monitor application usage patterns and behavior?

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
0votes
4answers
143views

Approach to tagging/versioning builds of an executable

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
1vote
4answers
254views

What is a log and what is a trace? [closed]

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
1vote
3answers
301views

Python logging in shared functions called by multiple main programs

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
11votes
8answers
7kviews

What is the advantage of log file rotation based on file size?

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
1vote
1answer
234views

Inheriting a logger

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
0votes
0answers
249views

Approach for comprehensive data/activity logging

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
2votes
2answers
435views

When to prefer print over logging?

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
0votes
1answer
169views

AWS and cron job: improve logging, monitoring and concurrence

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
-1votes
1answer
196views

Should the logging utilities be exposed as public API?

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
0votes
1answer
91views

Best practices for storing logs from worker processes in Azure?

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
0votes
1answer
133views

Logging, with optional foreign key cross reference

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
23votes
5answers
8kviews

Should I use a global logging variable?

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
0votes
1answer
546views

Cheap But Effective Solution for Logging in a private rest microservices backend api

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
-3votes
2answers
92views

Optimal variable-time logging of a real-time data stream

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

153050per page
close