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.

learn more… | top users | synonyms

0
votes
0answers
23 views

Any defect / suggestion in my logging mechanism (c++) [on hold]

Link: https://github.com/debdipta/designpattern/tree/master/singletone In above link I have wrote one opensource logging mechanism. It is in c++ and using Singleton design pattern!!! I was thinking ...
3
votes
1answer
66 views

Creating a Succinct, easy-to-read Method/Parameter Tracer

I am writing a class which can log the activity of an application during run time. The plan is that the SupportMI string will be sent to a DB, from where I can use ...
3
votes
1answer
51 views

Logging the load balance

I created a load balancing server at work and have to keep track of which server it adds the user to, so I wrote a little Ruby script that will do just that. I'm looking for any critique of my work, ...
2
votes
2answers
77 views

console.log helper function

I've seen the code for this function in John Resig's book 'Secrets of JavaScript Ninja' yesterday. I considered it useful at once because I've disliked repeatedly typing ...
3
votes
1answer
50 views

Function outcome: consistent approach and easy logging

My goal is to make a consistent and easy way to determine how a function fails/succeeds. I'm looking for code review of my Status class for any bad practices, code ...
0
votes
0answers
48 views

Exception-logging handler for the DAO layer

I'm a bit clueless on how to handle exceptions. What I've think so far is to use a custom error page for the users so they can't see the full exception for security reasons and log the exception in a ...
3
votes
2answers
42 views

Return the first number found greater than the provided input number (13 digits)

This script converts the numbers to be at least 13 characters long (for UNIX_MS strings). For use with timestamps, I'm having issues with it being very slow. I wanted an alternative to grepping for ...
0
votes
0answers
49 views

Threadsafe Logger with scopetime logging

I wrote a Logger which uses the destruction of temporary objects to Log their values including a scope time logger. Lets see what i can improve here to increase the performance and everything else. ...
2
votes
0answers
43 views

The perfect multi-output logger

I needed to write my own lightweight GO multi-output logger for a work project and I've come up with https://github.com/asticode/go-logger. Basically the projects works like this: ...
2
votes
1answer
117 views

Daily Log file - Multithread with date and time

I have one window service. At any given time this window service runs 5-10 threads and each thread do some logging on text file. Logging can be exception or some information related to task/job. I ...
2
votes
4answers
303 views

Implementing a thread safe log class with simple functionality

I have finally assembled an attempt to create a thread safe logging class and also ensured by file flags that file should not be accessed by different processes at same time. This classed will be ...
0
votes
1answer
73 views

Thread safe log class which creates log files according to the current date when entry was added

From this question and some help I created a thread safe logging class on which the name of the log file is same as the current date (short date) when the log entry was added. e.g. If I create ten ...
3
votes
2answers
209 views

Login activity in Android

This is a complete login activity class. What I need reviewed: I need simplify my code as much as possible. Is it wise to use the butterknife library, or is the normal way better? Hide keyboard ...
6
votes
1answer
173 views

Basic Linux daemon

To help myself relearn C++, I'm looking at writing a simple proxy. At the moment I've got a logger, command line argument parse and simple daemon (it does nothing beyond logging). Next I'll be looking ...
4
votes
1answer
323 views

Layered architecture implementation in a Java web application

I am trying to learn how to design and implement a layered Java web application with a presentation layer, service layer and the DAO layer. I have used the Struts 1.3 framework with Java JDK 1.6 for ...
10
votes
2answers
302 views

Filtering log files from a server

I have made a program in Python to do a filter of log files from a server. What I would like is some guidance on how this code could be optimized, streamlined or 'short-handed' so my 'pythonic' ...
0
votes
1answer
133 views

Print Java Object graph

Please share your comments and better ideas, to print java graph, which manipulates selected (@Mask) fields as XX, thus avoid logging confidential data, through ...
4
votes
1answer
30 views

Gives a live view to a changing file on server

I have a file on my server which contains a running output of a script. This file is constantly changing and fluctuates in size between 0 - 1Mb. Now I want to take this file and make it viewable from ...
3
votes
1answer
153 views

Web job logger implementation

Interface for logger: ...
5
votes
2answers
149 views

Logging/debugging for testing purposes

This is basically a logger which I use/wrote. It has convenient features like including one-line stack traces with print statements, making the text easier to find, and piping all output to either ...
7
votes
2answers
47 views

Monitor webserver accessibility inconsistencies

I have written a simple application to monitor whether a couple of Java EE 6 web applications deployed to Glassfish 3.1.2.2 are accessible. My intent is to demonstrate to our operations team that the ...
6
votes
1answer
55 views

Fixing logs that overlap

Here we trying to fix logs that have overlaps with each other. Am I doing it right? Is there any way to improve/refactor it? ...
6
votes
2answers
121 views

Logger module in child processes from os.fork()

I have had a hard time understanding all the documentation on the logger module and forking processes. My goal is to have each child process that's worked to write to their own separate log file. ...
1
vote
1answer
116 views

Configuring NLog

I have this method: ...
1
vote
2answers
90 views

Logging mechanism

I have the following code: ...
5
votes
1answer
161 views

NodeJS logging module

This code is for a NodeJS logging module. I created it because I wanted to find a way to log different type of things but not show them all at the same time. I also wanted to format the logs in a ...
10
votes
1answer
152 views

Try-except decorator for classmethods

This question is related to the Cactus Text Game Engine. For easy error handling in Cactus, we've put together this small decorator. Essentially, the decorator wraps any class method in a ...
2
votes
1answer
298 views

Logging and profiling - automatic logging through annotations

I am working with a little project intended to allow applications to benefit from aspect oriented programming. The first aspect is logging, which is already working. However I want this code to be ...
2
votes
1answer
39 views

Monitoring (i.e. loading updates) to log files

I wrote a simple little script, designed to load some log file. Clearing lines and loading updates is done by double clicking on the log line to clear. ...
2
votes
2answers
92 views

Email log parser

This code parses mail server log files and outputs statistics into an external file. Is there a way to make it more pythonic? Is it a good idea to use regex anywhere? Which libraries can reduce the ...
2
votes
0answers
65 views

ZF1 with Monolog

I am currently working in a Zend Framework 1 project. In the project we needed a sort of logging module, and Monolog was requested. Now since I'm quite a beginner with PHP, I'd like to know if I'm ...
2
votes
1answer
164 views

Custom error handler for PHP

I've written a custom Error handler for use in PHP. What it does is simply capture PHP errors, and logs them using Monolog. It works, but I can't help that it has too much stuff inside. I could ...
4
votes
1answer
324 views

Getting a list of all computer objects in each AD domain

So I wrote this script and although it does work I can't help but think that it can be more efficient with all the repetitive code. Can anyone offer any suggestions on making it fewer lines and ...
1
vote
0answers
41 views

Cross-browser UI-less replacement of console.log

I've written some integrated tool which allows to save the console.log output to a file. The point is that this tool forwards each ...
18
votes
0answers
199 views

Utility that decodes and logs UDP packets

I have written the following utility, as my first non-tutorial program in Go. The purpose of the utility is to connect to a torque/force sensor (aka load-cell) via UDP; to send an initialization ...
3
votes
2answers
426 views

Logging to a File vs UDP

I'm trying to understand where my ruby implementation of this fails and hoping for an expert to shed some light on this situation. I've tried to make this a very simple example with the idea that ...
6
votes
1answer
302 views

Automatic flowchart generator

I wanted to see graphically what my programme was doing so I wrote this automatic flowchart generator: ...
3
votes
2answers
137 views

A program to shred files

The following is a program to shred files securely: ...
3
votes
0answers
219 views

Multithread debug logger for Free Pascal / Lazarus

Debug experience can be much improved in the Lazarus development interface. Please, if you use this free development environment and have the same felling, do not consider this affirmation simply as a ...
2
votes
1answer
50 views

Logging of various exceptions in the callback

I am working on a library in which I need to execute my URL using AsyncRestTemplate and after that I will get a json response back if it is successful. I am also making ...
4
votes
3answers
198 views

Directory Snapshot

The following code creates a recursive backup of a directory in the form of interlinked HTML files, structured in the same form as the input directory. It does not take the backup of the contents ...
0
votes
1answer
156 views

Ruby singleton for logging

I currently have a logging setup that looks like this: ...
7
votes
3answers
2k views

A Simple, One-Page PHP Admin Login (with prepared SQL statements)

First off, I want mention that this code works well. This is more of a request for suggestions... We're attempting to program a one-page, recursive, token-based admin shell that is safe from ...
8
votes
5answers
843 views

Custom Logging Class: Efficiency

I wrote a logging class for several of my applications, but I have noticed that it is fairly in-efficient. Can anyone suggest improvements? What I am looking for: Pointers on improving efficiency ...
1
vote
1answer
63 views

Logging errors with the same exception type

I wrote some code which simply retrieves the HTTP status code of the passed in URL. There are multiple potential causes of the same error. I am hoping to get some all around feedback on this code, ...
3
votes
2answers
211 views

Log-reading & String-matching with hashtable for fastest execution speed

I'm currently enjoying this exercise I'm working on for fun: I wish to write optimized code for the searching of particular strings per line in a (very large) file, counting how many exist, and ...
3
votes
2answers
80 views

Small library for logging to MySQL

I've thrown together a utility for my programs to log to a database, but the code looks like a mess and I don't know how to clean it up. This library is going to be used from all of my other programs ...
6
votes
2answers
95 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 ...
3
votes
2answers
500 views

Updating list of string while other threads are reading from it

I have a logging solution that writes down the hashes of messages. I consider some of these hashes to be safe and I want to skip logging those. I have implemented a whitelist that is a directory ...
3
votes
0answers
218 views

Exception logger for servlets and JSPs

I hate using unnecessary catch blocks and I like to see my code look beautiful. In most of the cases in my project, which is a web application, I can't declare many ...