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.
337 questions
3
votes
4
answers
321
views
The project logger
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
Decorator to log function calls and return values
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
Bash script for manually cleaning up the Traefik access log file and limiting it to a maximum of 50 MB
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
Implementing a custom logger in .NET
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
GitHub Label Management with GraphQL, Requests, and Loguru
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
Grouping logs and providing counts
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
logging utility for web bot
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
PIMPL based logging interface to print multiple parameters at once
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
A Windows localhost key logger in C++ with WinAPI
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
Logging in a different thread using circular buffer C++
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
utility to manipulate java.util.logging config using command-line system properties
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
Header only logging library in C++
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
Program for monitoring file in Combined Log Format
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
Logger with a Core and Client side
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
Logger for a Game Engine
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 ...