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.
19 questions
29
votes
1
answer
6k
views
Extensible logging
Whenever I need logging functionality in .net, I use a logging framework, such as NLog. Obviously there's no logging framework for vba, at least none that I know of.
As much as I love using NLog, the ...
1
vote
3
answers
1k
views
Custom exception handling function or logging library?
I want to document every exception handled in my code and some states of the code when it works properly.
What I've done is two functions, one that creates an 'error report' (function: ...
3
votes
2
answers
417
views
Logger adapter with a configurable chain of responsibility of middlewares
I use my own logger adapter that collects data into a dictionary:
public class Log : Dictionary<string, object> { }
This is really all I have. I then pass ...
71
votes
2
answers
98k
views
Redirecting subprocesses' output (stdout and stderr) to the logging module
I'm working on a Python script and I was searching for a method to redirect stdout and stderr of a subprocess to the logging ...
23
votes
3
answers
3k
views
Parsing log files of HearthStone: The log reading API
I'm still working on a parser that can parse log entries from a game called HearthStone, the overall idea is that it will read the log file live when the game is running, parses the log file and show ...
16
votes
3
answers
29k
views
Implementing a logging system in C++17
I've been programming for what is a probably a little bit and made a very simple logging system for my personal projects. While it works out fairly well so far, I would like advice on how to make it ...
15
votes
1
answer
2k
views
Ambient Context
What do you think about this way to make logging available across the application without passing log object around? Let’s say we have something which allows us to ...
8
votes
1
answer
509
views
Operation logger
GitHub, NuGet
This component traces execution in a logical order instead of chronological as everybody else :)
For example, the following code:
...
6
votes
2
answers
255
views
Extensible Abstract Log Reader
My goal with the following code is to provide an extensible class that can be extended in order to read log files and transforms them into meaningful output.
I'd like to have comments about the code ...
5
votes
3
answers
347
views
Class showing a format similar to var_dump RC5 Version
Some methods of this library require some improvements (see this description):
In the constructor I am trying to create the possibility that the user modifies the ...
4
votes
1
answer
973
views
Simple logger class in C# - Follow up
I've asked a question about this particular code before, although it was a little different back then. I took the suggestions from people who replied to my question and decided to post a follow up to ...
4
votes
2
answers
5k
views
Robust logging solution to file on disk from multiple threads on serverside code
I have implemented a socket listener that runs on my Linux Ubuntu server accepting connections and then starting up a new thread to listen on those connections (classic socket listener approach). ...
4
votes
2
answers
493
views
C# Logging System
I created a small logging class library and wanted you guys to check it out, I used to use Log4Net but thought I could create something more user friendly that was more suitable for my project than ...
4
votes
2
answers
1k
views
Scanning through logs (tail -f fashion) parsing and sending to a remote server
I have a task at hand to build a utility which
Scans through a log file.
Rolls over if a log file is reset.
Scans through each line of the log file.
Each line is sent to an executor service and ...
2
votes
3
answers
192
views
Java logger (of doom!)
I wrote my own logger, but I dislike how many times I overloaded the log() function. If anyone knows of another way of doing that, feel free to share.
...