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.
336
questions
3
votes
1
answer
241
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 ...
0
votes
1
answer
66
views
Manage repetitive/similar structures (logging & try/catch blocks)
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 avoid code repetition I ...
3
votes
1
answer
130
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
165
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.
...
3
votes
1
answer
102
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++ ...
3
votes
1
answer
49
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
127
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 ...
1
vote
0
answers
48
views
Go log file swapper
Please review my code. I left some comments where I think something might be wrong, but any comment is appreciated.
I am writing a package for a project I am currently building. Its purpose is simply ...
3
votes
1
answer
83
views
Logging activity traces with custom APIs
I've got this idea (based on experience) that logging plain messages isn't just enough to monitor an application so I built an abstraction layer on top of the built-in ...
3
votes
1
answer
224
views
Custom single-header C++ logging library
I started learning C++ recently for game development, and decided to write my own little library for debugging.
Here is the library (snoop.hpp)
...
4
votes
1
answer
89
views
Generic logging setup that enables context information
I use the below code to include context specific information in logging record (see obj).
...
1
vote
1
answer
804
views
Replacement for EnsureSuccessStatusCode
I like the simplicity of EnsureSuccessStatusCode for HttpResponseMessage after a call using ...
1
vote
2
answers
333
views
Logger using variadic macros
I'm getting back into C and I wrote this variadic logger as part of a chess application I'm writing. As such I'm looking for feedback about the general approach (I'm going to give it another pass to ...
3
votes
1
answer
898
views
A Python decorator to trace function calls
A while ago, I came up with a function that is similar to this one: Decorator to log function calls and return values, but with a different implementation.
What this function does: when applied to a ...
2
votes
0
answers
315
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 ...