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.

Filter by
Sorted by
Tagged with
6
votes
1answer
255 views

PBKDF2 authorization

I've discovered that using hashed passwords with salts is a much better idea than MD5/SHA256, so I'm not hashing them with PBKDF2. However, I'm wondering if this is a correct approach to authorizing ...
0
votes
2answers
12k views

ASP.net proper login - logout classes - control login status

Would you have any suggestions improvements for the below functions classes ? Ok here how do i make a registered member login ...
2
votes
5answers
240 views

Logging input and log file strings

This is a piece of C89 code testing a function titled logging_function(), which takes two arguments and uses them to log a bit of information. In this case, the ...
5
votes
1answer
93 views

Selecting and copying event log entries for some machine

I have a PL/pgSQL function with erratic performance: ...
3
votes
1answer
162 views

Logging system safety

I've created a logging system with one-use passwords (sent via SMS API). What I would like to know is if it's "safe". I know it is hard to estimate safety but I am curious if it is safer than regular ...
4
votes
1answer
3k views

How's my approach to logging?

I was surprised that I didn't find this approach to logging anywhere while reading up on the subject. So, naturally, I think I may be doing something wrong. I set up some simple tests, and this seems ...
3
votes
2answers
277 views

Logger class for logging connections

I have this class whose code I pasted in full. The CredentialsManager class is not shown here as all it does is return the DB connection variables. Can be improved ...
4
votes
1answer
966 views

Filtering lines in a log file using multiple regexes

In python2.7: 2 for loops are always a little inefficient, especially in python. Is there a better way to write the following filter function? It tags a line from a log file, if it is useful. ...
4
votes
1answer
339 views

Dynamic IP-address logging

Inspired by Don Stewart's article on Scripting with Haskell I tried a rewrite of a shell-script I did the other day. I was really astonished how easily it worked but as a whole it is about double the ...
4
votes
2answers
4k 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
3answers
429 views

Possible buffer overflow dangers in C log parsing program

After hours of working, I've finally finished my first C log parsing program! (previously was a bash script, now it is C). Although I think I've gotten most everything, I was just wondering if you ...
7
votes
1answer
279 views

Periodically comparing the play count of two Last.FM users

There is some little program (using a Last.FM API wrapper) which gets the play count of 2 specific users every 5 minutes and appends the difference between these 2 numbers to log file. Can you review ...
3
votes
1answer
592 views

GZip archiver for log files

It compiles, works well, solves my problem of zipping old or big log files and removes them from a hard drive. However, following this answer, I would like to know what was wrong with the code. ...
4
votes
2answers
347 views

Extracting the five most frequent queries from a log file

I'm trying to print the top 5 most queried strings from a text file. I can't use other third-party libraries to make it easier w.r.t hashmap implementations. I need to improve on these if possible: ...
49
votes
2answers
65k 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 ...
5
votes
4answers
2k views

How do I improve this logging mechanism?

There are quite a few things I am considering: I will have to check for null values I will have serious trouble persisting it in the database. How do I improve ...
3
votes
2answers
1k views

Is calling file write in the dispose acceptable?

...