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.

3 votes
4 answers
321 views

I have written a small function that will be imported in each working file of my project and will make logging uniform for the project, allowing for centralized editing of logging settings. What can I ...
2 votes
0 answers
401 views

I want to write a decorator in Python 3.11 that adds some basic logging to functions. I want to use the decorator without any keyword arguments: @add_logging In ...
5 votes
3 answers
764 views

I have written a short bash (or POSIX-compliant) script to clean up the Traefik access log file and limit it to a maximum of 50 MB. I would like to know what you think of it. Any suggestions are ...
4 votes
2 answers
202 views

One of my latest projects has been implementing a custom .NET logger, as a lot of our products use their own logging solution and we're trying to standardize, but that means accounting for a lot of ...
6 votes
3 answers
289 views

I've developed a Python script that automates the management of GitHub labels. It utilizes both the GitHub GraphQL API (to fetch label data) and the REST API (to update, delete, and merge labels). The ...
6 votes
1 answer
85 views

The code is supposed to group start and end time logs and provide log counts and unique ID counts. The grouping will be variable 1 hour, 6 hours, 12 hours, 24 hours, etc. What is the better way to ...
2 votes
1 answer
109 views

I'm writing a web bot using puppeteer and I'm logging (using winston) every action the bots does and running it inside try/catch blocks. For automating these processes and avoiding code repetition I ...
5 votes
3 answers
420 views

I have implemented my own logger based pimpl idiom. As a third party lib, I used spd log. My focus is to provide an interface to the end user who wants to print multiple parameters at once. I also ...
3 votes
1 answer
130 views

Now I have this repository. It's a key logger logging all the keyboard events possible. Note that some programs do not "leak" the keyboard events outside of their GUI. For example, Notepad++ ...
4 votes
1 answer
306 views

What it does The code creates a logger class which instantiates a circular buffer at construction and uses producer-consumer style approach using condition_variable to log and print the messages to ...
3 votes
1 answer
185 views

This is intended for temporary ad-hoc changes to logging config, for example when debugging etc. Also included are functions to easily manipulate config from a code (for example at the beginning of a ...
4 votes
2 answers
242 views

Source Code I've attempted to create a simple logging library in cpp. My goal was to make it lightweight to incorporate and easy to add to the codebase. ...
1 vote
2 answers
184 views

After encountering a suggestion that monitoring a log file for a webserver could allow for the implementation of automatically analyzing and handling of certain events (that might require altering ...
3 votes
1 answer
74 views

This logger is for a game engine I'm writing it has a core side which is the game itself and a client side which is the engine. The architecture of the code I feel like is messy it has the main log ...
2 votes
1 answer
180 views

So I'm making a logger for a program and it has 6 levels increasing severity and things I don't think its as memory efficient as it could be but I'm just getting into c++ and memory coding. I feel ...

15 30 50 per page
1
2 3 4 5
23