Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
11 views

How to ensure that every log event will be delivered to the GrayLog

In our applications we traditionally log events locally into the logging files. As our applications are distributed on multiple server instances, searching for particular events are complicated and ...
0
votes
0answers
22 views

Logfile correlation finder (for j4Log)

I'm currently analyzing a problem in a old "distributed" system, that only occurs sporadically - as the system does not support other means of debugging help I have to rely on the logs (I did not ...
1
vote
1answer
49 views

Logging patterns from within library code

I am looking for a design pattern for logging from within library code. Suppose I have a function in a library file that i expect will be used by multiple front-ends (lets assume a CLI and a web): ...
3
votes
3answers
153 views

Drawing lines with dashes in logs

It can sometimes ease readability to "draw" lines in a logfile. For example: noise noise ----------------------------- Starting Operation ABC blabla blabla ----------------------------- End of ...
1
vote
1answer
117 views

Logging an application in Python

Recently I have worked in a small standalone Python console application and have inherited some code from another team. Although some of us have written small Python scripts in the past, none of us ...
1
vote
1answer
106 views

Logging architecture in microservices

We are going to develop an enterprise level application which will be run by a dozen microservices. Every microservice will be inside docker and all this will be orchestrated by Kubernetes. Obviously, ...
0
votes
0answers
44 views

Are there any implementations of a AOP framework that can weave aspects into a running program

Using Aspect Oriented Programming (AoP) for logging and debugging seems to be a rather established technique. That got me thinking, are there any software packages that enables us to weave aspects ...
-1
votes
2answers
125 views

Handling logging when there is no internet access

I'm developing an application that handles sales for multiple clients, when the client sells a particular item, that information should be send to the admin. The count of each item sold and the item ...
4
votes
2answers
110 views

How would you go about designing a structured log pattern for systems?

My web app generate log entries on hooks such as model.save. Right now, I have a class Entry (representing a log entry) with a string field content to contain the text of the log entry. Examples of ...
1
vote
2answers
144 views

Rotated log file - what is it?

What does rotated log file means? There is any example? I used to see this term in logging libraries documentation but couldn't understand the meaning. Update: there is any different from a rolling ...
1
vote
1answer
72 views

Logging Architecture Solution

Let me start by setting up the context briefly. In our organization (a Big Data company), there are many different systems, including Web sites, workers (system listening to queues and/or topics), ...
1
vote
1answer
157 views

Fastest way to persist an append-only ordered event stream

I'm looking to persist a stream of events and I want it to be: fast in both latency and throughput, looking at at least 100k events per second ordered (not by timestamp, as multiple events within the ...
0
votes
0answers
24 views

Logging and Multilanguage in Golang Microservice

I'm currently doing this project that handles Logging with MultiLanguage feature in golang microservice. Basically the idea is, if I encountered error on the backend I will repost back to the client(...
0
votes
1answer
127 views

When doing oop in python where should I add the logger

When doing oop in python where should I add the logger. Should I add it: before the class Rocket(): and give it a file global scope or after the class Rocket():  and give it a class scope. Syntax ...
0
votes
1answer
78 views

Application analytics - Logging with NoSQL/RDBMS, BigData [closed]

I need to architect a system for my company. My question is specific to logging. Part of the requirement is to log 2 kinds of data. A1. User events (Ex: UserA clicked on Button1, performed Action#21. ...
0
votes
0answers
156 views

Strategy regarding an (almost always) offline app

I'm currently in internship in a software/app development company, where I have to come up with an idea about how can we handle the fact that the user will mostly use an app offline. Basically, the ...
0
votes
2answers
181 views

what is the impact of logging (or excessive logging) of messages to log file on application performance?

Do logging impact application performance? First thing to know is , whether logs are written serially as processing takes place or are logged into file i a separate process? In java world how should ...
5
votes
3answers
473 views

Better conditional debugging pattern?

Given the need to log only in debug mode the easiest way would be to use if conditions: def test(x, debug=False): if debug: print(x) # ...Some more code if debug: print("...
0
votes
0answers
32 views

Is failure to emit telemetry typically a fatal error?

When designing a component that emits telemetry, should the failure to emit telemetry fail the operation? Or should the failure be saved to the a log and let the operation continue (knowing that a log ...
1
vote
2answers
78 views

How much to log with 400 or 500 HTTP resonses?

In light of the recent Twitter logging bug, I've been thinking about something with my own web-app: how much information should I log in the event of a 400 or 500? I obviously don't want to be logging ...
0
votes
2answers
85 views

Difference between interaction log and “debug” or “application” log

Let's say I need two logs coming out of my application. One is for debugging issues and making sure the application runs correctly and the other is used for user statistics and general analysis of the ...
0
votes
1answer
819 views

Is it a good practice to log client side errors to a file

I basically want to know if it is considered a good practice to persist the errors that happen on the client side of a web application (typescript/angular for example) by logging them to files? Or if ...
2
votes
3answers
226 views

Storing a large amount of measurement data in a small storage space

I'm storing some temperature, voltage and current data every 10 seconds to a log file. This file is supposed to be retrieved later so we can read the data and display it. Time requirement is 6 month ...
1
vote
1answer
120 views

logger initialization in JEE based web application

While working on a web (JEE based) application I saw some different ways people have instantiated loggers in different classes. First way is classic way like, private static final Logger logger = ...
7
votes
6answers
4k views

Try/Catch/Log/Rethrow - Is Anti Pattern?

I can see several post where importance of handling exception at central location or at process boundary been emphasized as a good practice rather than littering every code block around try/catch. I ...
1
vote
1answer
65 views

How to implement format-complying logging system?

We have a system that generates lots of logs and we have to somehow maintain logging workflow in a project. The 'strict' (let's assume it's strict) requirement is that there should be a document ...
39
votes
6answers
5k views

Making code findable by using globally unique message IDs

A common pattern for locating a bug follows this script: Observe weirdness, for example, no output or a hanging program. Locate relevant message in log or program output, for example, "Could not find ...
7
votes
1answer
405 views

Handle Optional Logging in High-Performance Library

I'm writing a library in C++ which needs to be as fast as reasonably possible. However, I'd also like to be able to provide logging in case a user (or me) needs to debug possible problems. This ...
0
votes
1answer
65 views

Logging parametrized logs while maintaining readability

I have a LogFormatter class which looks like below @Sl4j class LogFormatter { public static String format(String taskType, String taskId, String message) { return String....
4
votes
2answers
114 views

Logging/Debugging of computer vision apps

When I'm writing an computer-vision program (using OpenCV and Python) I need to print/show a lot of intermediate results in form of images (using cv2.imshow(..)) for debugging purposes to find out ...
4
votes
2answers
99 views

Create machine-readable logfiles

I'm currently developing a new device, which produces (text-)logfiles. There will be many devices of this type and I want to analyse the logfiles (for error-detection and statistics). Until now, the ...
0
votes
0answers
43 views

Whats the difference between auditing and logging system? [duplicate]

Yesterday, our team had meeting with one of our software architects about our logging and monitoring systems currently in the company. Everything was fine until, one of my colleague asked What if ...
1
vote
1answer
220 views

Storing logs on mysql database

I was looking for more information on logging user actions on the application (web based project). I did found this question, but it's a more conceptual answer, wich helped me getting started with ...
0
votes
4answers
266 views

Making logging more efficient and useful by categorizing data (and virtually not wrtining messages anymore)

I'd like to make my logs more useful. Currently they mostly contain such common columns as: timestamp, logger-name, log-level, message, exception. They are unsearchable and unparsable and writing ...
1
vote
2answers
123 views

Optional logger for an API implementation

Say I want to create a C# implementation of an API for some 3rd party service, and I want to have an option to get the json posts and responses out somehow, what would be an elegant way of doing that? ...
1
vote
1answer
411 views

How to choose between a library and shared project?

I am working on a set of .NET Core 2.0 Microservices together with some other developers. I wrote some code to add my own custom logging as described here. My logger sends the logging messages to an ...
1
vote
2answers
1k views

Auditing web application user changes

I have a web application written in Java, Oracle, and AngularJS. I want to save log in database when user changes, creates or updates something. There are two way of implementing this: 1. Auditing ...
3
votes
4answers
349 views

What is the point of logging? [closed]

I got asked a question today that was so basic I was unsure how to answer it. I had added some logging statements to our integration testing package, to find out what part of it was taking so long (...
5
votes
2answers
2k views

Should I be logging every request in a web application?

I know that logging is supposed to tell a story about what your users are doing. Eg: User 1 created a thing User 2 deleted a thing User 1 tried to access a thing and encountered an error This ...
2
votes
2answers
162 views

What to do with error logs that contain source information in release builds?

I'm in the early stages of developing a game engine in C and so far I've been using a simple logging module to print error messages to a log file. For every possible error that could occur, I have ...
0
votes
1answer
686 views

Design and setup a centralized logging with microservices / docker

I am developing on a a large webapp system that has multiple docker containers. Imagine a webapp but with many external restful services running on different containers. A microservices setup. I ...
0
votes
1answer
286 views

Filtering exceptions in log - Design Smell?

I used Spring Boot 1.5 which uses Logback. I created event objects in controllers and validated them using @EventListener. When a validation error happened I raised an ApplicationSpecificException ...
5
votes
2answers
1k views

How to add logging to a library so it can integrate easily with the logging system of the program using the library?

I'm writing a library that has a lot of information that may be of use in a log in the program which uses it, but I don't know the best way to expose it in such a way that the program using my library ...
1
vote
3answers
2k views

Where should the logger be in a multi-project asp.net solution?

I have a Visual Studio solution with 4 projects, that closely follows the Nop-commerce structure. The following is the structure of my solution. - Core - Data - Services - Web The Web project is an ...
7
votes
8answers
3k views

Is it possible to keep logging code completely outside the business logic?

With the help of AOP, I can remove the logging code from my business logic. But I think it can only be used to log simple things (i.e. logging method entry/exit and parameter values). However, what ...
5
votes
3answers
447 views

Better way of logging than manual calls to a logging function?

I'm writing a simple web server in Haskell, and putting in a bit of logging. I've got some calls to a logging function in a chain of IO >>=. It all feels a bit manual. Is there a better/more "...
5
votes
2answers
2k views

In ASP.Net Core , how does one resolve circular references?

I was working on migrating over a project which uses a static logger, and a static email service. The email service logs emails sent, and the logger service sends an email if there are any logging ...
4
votes
1answer
408 views

Advice needed on approach to log raw request/response body from APIs

I need some advice on an approach to log raw request/response data from a few webapps, for all operations and hits on all APIS accessed via HTTP methods (mostly HTTP POSTs), that I have hosted. ...
3
votes
1answer
51 views

Capturing warnings when batch processing is ignored

My client has a process which iterates over a number of actions that may or may not apply to a users portfolio. Quite frequently, processing of an action may give up and jump to the next action or ...
4
votes
1answer
139 views

Language independent logging system

I have a software which logs various events into a database (SQLite). Currently the stored datas are : Message Date Category Criticality The logs are written in the current software language. Which ...