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.
                273 questions
            
            
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                136
            
            views
        
        
            
            
            
        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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                4
            
            answers
        
        
            
                262
            
            views
        
        
            
            
            
        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 ...
                
            
       
        
            
                1
            
            vote
        
        
            
                4
            
            answers
        
        
            
                425
            
            views
        
        
            
            
            
        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 ...
                
            
       
        
            
                1
            
            vote
        
        
            
                3
            
            answers
        
        
            
                595
            
            views
        
        
            
        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 ...
                
            
       
        
            
                11
            
            votes
        
        
            
                8
            
            answers
        
        
            
                7k
            
            views
        
        
            
            
            
        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 ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                393
            
            views
        
        
            
            
        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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                287
            
            views
        
        
            
            
        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 ...
                
            
       
        
            
                2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                620
            
            views
        
        
            
            
        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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                187
            
            views
        
        
            
            
            
        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.
...
                
            
       
        
            
                -1
            
            votes
        
        
            
                1
            
            answer
        
        
            
                222
            
            views
        
        
            
            
            
        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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                108
            
            views
        
        
            
        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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                177
            
            views
        
        
            
            
        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 ...
                
            
       
        
            
                24
            
            votes
        
        
            
                5
            
            answers
        
        
            
                9k
            
            views
        
        
            
            
        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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                596
            
            views
        
        
            
            
            
        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 ...
                
            
       
        
            
                -3
            
            votes
        
        
            
                2
            
            answers
        
        
            
                109
            
            views
        
        
            
            
        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 ...
                
            
       
         
         
         
        