logging

C++ WxWidgets: Single log window for messages from Multiple Threads

What's the best/proper method to collect log messages from multiple threads and have them all be displayed using a window? (while the threads are running). I am currently trying to redirect stdout (cout) in to a wxTextCtrl but failing miserably when attempting to do so over multiple threads. Any help would be appreciated. ...

Simple thread-safe non-blocking file logger class in c#

I have a web application, that will log some information to a file. I am looking for a simple thread-safe non-blocking file logger class in c#. I have little experience with threading. I known there are great logging components out there like log4Net, Enterprise Library Logging Block, ELMAH, but I do not want an external dependence for m...

Windows Driver Loader?

Debug Messages from the Windows Kernel Drivers? I am using DbgPrint and DebugView currently, but it this the official way to observe the drivers behaviour? Does anybody know if and where kernel log files are hidden in the Windows System (like /var/log and dmesg only windows-ish?) I for my part are currently using Vista, but there prob...

Distinguishing source context in log4net output

I'm fairly new to log4net, and I can't seem to find any clear examples of how to handle this situation. I have a communication stack that consists of three layers: hardware, transport, and protocol. The three layers are contained inside of a manager class. As far as the user of the code is concerned they create the manager with a hard...

How to configure logging of subversion operations performed by Hudson?

Dear ladies and sirs. We use Hudson as our CI server and SVN as our source control system. We normally tag our builds by means of the "Tag this build" command, which works fine. But today, I wished to create a branch, which is the same from the SVN perspective. However, Hudson refused to do so. We would really like to see the logs, but...

Adding generic logging support in C++ shared library

I'm writing a c++ shared library that is intended to be used by other library or executable. What is the best way to add a generic logging in my library? Ideally I'd like to adapt my library to logging functionality chosen by the library's user. Suppose i have a class in my library class A { public: void method(string param1, in...

Setting error log filename in apache to include current date

Hi, I'm trying to have apache create a new error log file every day, based on the current date. The default error log filename is something like this: ErrorLog "/logs/error.log" and I want it to be something like: ErrorLog "/logs/error_$year$month$day.log" Any ideas? ...

What does LSN mean in SQL Server?

What is the meaning of Log Sequence Number? I know that it is of type binary and 10bytes long and it corresponds to the time the transaction happen in DB. But is this a high precision date-time value that is stored in some efficient binary format or is this a function of date-time and something else (for example the serial number of tran...

Log all MethodCalls with minimal code changes (C# 3.0, .NET 3.5)

Hi, I have an application I need to analyze. I have the source code here. I already found a way to log the method calls using this code: Inside Method: logger.MethodTraceLog(); public void MethodTraceLog() { var msg = "MethodTraceLog: " + this.log.Logger.Name + " ### " + new StackFr...

How can I remotely watch logs on Win2003 servers?

(Briefly, like this question but for Windows servers.) I have several Win2003 servers running custom application services (C/C++, not Java) that write text-based logs in a custom format. [2009-07-17 12:34:56.7890]\t INFO\t<ThreadID>\tLog message... [2009-07-17 12:34:56.7890]\t *WARN\t<ThreadID>\tLog message... [2009-07-17 12:34:56.789...

SQL standard select current records from an audit log question

My memory is failing me. I have a simple audit log table based on a trigger: ID            int (identity, PK) CustomerID    int                Name          varchar(255)       Address       varchar(255)       AuditDateTime datetime           AuditCode     char(1)            It has data like this: ID CustomerID Name      Address         ...

catalina.out rolling with Tomcat 6.0

I have a default tomcat installation with no change to the logging configuration. The log files (in particular catalina.out) appear to be getting rolled (daily) correctly. However as well as the daily logs there is also a catalina.out file, which just continues to grow. This is what I need to fix, ie have it cleared daily (or remove it ...

What is the DRY way to configure different log file locations for different settings?

I am using python's logging module in a django project. I am performing the basic logging configuration in my settings.py file. Something like this: import logging import logging.handlers logger = logging.getLogger('project_logger') logger.setLevel(logging.INFO) LOG_FILENAME = '/path/to/log/file/in/development/environment' handler =...

PHP logs - mysql vs file

I am in the process of setting up user action logging for my PHP site. Would you recommend storing them in mysql or in text/log files? ...

JavaScript method to write to Microsoft Visual Web Developer Debugger?

I generally test my web apps with Firefox and use Firebug. I love Firebug. But when I'm testing JavaScript code in IE I use the debugger in Microsoft's Visual Web Developer 2008 Express Edition. I would love to have an equivalent to Firebug's console.log methods which would allow me to log messages to Visual Web Developer. Any way to log...

Log4net creating custom levels

Hi I know its possible to use the built in levels with log4net INFO, WARN, ERROR and FATAL messages Is it possible to create new ones? ...

Problem with java.util.logging and Lock file

Hi, I have an application that scans a set of files. And this scanning take place parallely. I mean if I upload 5 files, five process will be created and start executing the job parallely. Now For logging the exceptions for the jobs running, there is only one log file. The problem that is coming is, the logger creates a lot of logs file...

How to handle remote monitoring of log4j ?

I´ve been using chainsaw to remotely monitor an application that use log4j. I´m wondering if there are better ways to do it, or perhaps another logging framework. ...

Logging in ruby on rails

How can I setup the automatic cleanup on test.log and development.log in ruby on rails? Is there a setting to automatically delete dev and test logs on server start and tests run? ...

What is the best way to log an error when testing in Perl?

What is the best way to log an error when testing in Perl? I prefer a one-liner solution such as return 0 if $var!=3 and $logger->error("Var is not 3")) Can something like the example shown be implemented? ...