logging

MySQL Trigger based Audit logging with comparisons

In looking at similar questions like: http://stackoverflow.com/questions/740182/getting-trigger-to-insert-changed-column-values-only-in-audit-table http://stackoverflow.com/questions/617225/audit-logging-strategies I would like to take this one step further and compare the updated data to see if it actually has been updated... I'm not...

Overriding System.Diagnostics.Trace.WriteLine to log to a file

This may be more of an OOP concept question, but here's what I'd like to do. I have an application that outputs debug information using System.Diagnostics.Trace.WriteLine so it can be viewed with DebugView. I'd like to override/extend (not sure of the proper terminology) this method to log the text to a file instead, or maybe in additi...

How do I create a nice -description method that nests recusively like NSArray

The -description method for NSArray will nest recursive calls as in: 2009-05-15 14:28:09.998 TestGUIProject[29695:813] ( a, // Array1 item 1 ( // Array2, a second array, nicely indented another 4 spaces a // Item in Array2 ) // End of Array2 ) // End of Array1 I want to do something similar for my own custom cl...

Difference between Simple Logging Facade for Java and Apache Commons Logging

What is the difference between Simple Logging Facade for Java and Apache Commons Logging ? ...

Log4cxx custom appender

Is it possible to write a custom appender for log4cxx and have it configurable via a properties file (like the built-in appenders)? I'd prefer doing this without having to rebuild log4cxx (e.g. by deriving/extending an existing appender), if possible. Can you point me toward an example? ...

Where do I configure log4j in a JUnit test class?

Looking at the last JUnit test case I wrote, I called log4j's BasicConfigurator.configure() method inside the class constructor. That worked fine for running just that single class from Eclipse's "run as JUnit test case" command. But I realize it's incorrect: I'm pretty sure our main test suite runs all of these classes from one proces...

logging with filters

i'm using logging (import logging) to log messages; within 1 single module, i am logging messages at the debug level (my_logger.debug('msg')); some of these debug messages come from function_a() and others from function_b(); i'd like to be able to enable/disable logging based on whether they come from a or from b; i'm guessing tha...

Castle Logging Facility In 2.0 Release

Does anyone know if there are new binaries for the castle logging facility using the castle windsor 2.0 release? ...

structured/combined logging with Log4J

Hi fellow geeks, I hope you can help me. I have a web service that needs to log transactions. Since there are many hits, the log statements appears disjoint/fragmented in the log file. I've considered passing a StringBuilder instance through-out the layers and appending the statements to this instance, then I log its contents once at t...

DDD. Domain model and logging.

Domain model should be dependency-less. Therefore - it must not contain any reference to logging mechanism. I understand that there are not any problems with logging infrastructure&application layer, but what if i want to log domain model? Is it not supposed to be logged, just unit tested & logged from outside (infrastructure/application...

Logging AD User Actions (with deleted users)

We are about to migrate an intranet web application from using a proprietary forms-based security to Active Directory. The application logs a variety of user actions, and there is a significant amount of data associated with user accounts. Our plan was to migrate all of these UserId columns in various tables: from a foreign key linking...

Data Logging with Oracle (or any RDBMS)

What is the "best" (correct, standard, etc) way to maintain a log of data acquired at a set rate (every minute, every 5 seconds, every 10ms, etc) in an Oracle database? It seems inefficient to store the 7 byte DATE value for every datapoint (especially as the frequency increases). However, packing the data into some type of raw format ...

Is it possible for a default log handler in glib to be passed multiple log levels?

The glib GLogLevelFlags enum is defined as: typedef enum { /* log flags */ G_LOG_FLAG_RECURSION = 1 << 0, G_LOG_FLAG_FATAL = 1 << 1, /* GLib log levels */ G_LOG_LEVEL_ERROR = 1 << 2, /* always fatal */ G_LOG_LEVEL_CRITICAL = 1 << 3, G_LOG_LEVEL_WARNING = 1 << 4, ...

Enable Logging Log4j for certain users

Hi, In the log4j.properties file I've set the Level to ERROR. For certain users I need to set Level to DEBUG. I was able to change the Logging Level at run time; but this will be enabled for all the users accessing the application at the same time. Is there any other method by which we can enable logging for selected users? Any help will...

Java Garbage Collection Log messages

I have configured java to dump garbage collection information into the logs (verbose GC). I am unsure of what the garbage collection entries in the logs mean. A sample of these entries are posted below. I've searched around on Google and have not found solid explanations. I have some reasonable guesses, but I'm looking for answers whic...

Exception Logging for WCF Services using ELMAH

We are using the excellent ELMAH to deal with unhandled exceptions in an ASP.NET 3.5 web application. This works extremely well for all of the site apart from WCF services which are being consumed using the REST features. When an exception occurs within the operation methods that is not handled by the application code, WCF handles it in ...

Logging WCF message sizes

I am using WCF to send some Linq objects across the wire. I want to log message size either using Message logging or tracing. I don't however want, or have the ability to use the config file to set this up. I am struggling to figure out how to do this programatically. I don't care if this happens at the host of client. I control both. D...

Log changes to database table with trigger

I am looking for a good way to log changes that occur on a particular set of tables in my SQL Server 2005 database. I believe the best way to do this is through a trigger that get's executed on updates and deletes. Is there anyway to grab the actual statement that is being ran? Once I have the statement I can easily log it someplace else...

MySQL Query Logging in CakePHP

Hello, I wanted to know if there is way to log the mysql queries in CakePHP being executed when we use the find method on the models, I know that rails database queries, so does Cake do the same, if so how can I enable it or use it? Shiv ...

How to auto-generate logger calls into source code in C#?

What i'd like to generate into method bodies: private void SomeMethod() { Logger.Log("Entering SomeMethod."); // do stuff here Logger.Log("Exiting SomeMethod.") } Is there a tool which can generate that for me? If there isn't, and I'd like to implement one myself, then where do I start, which library should I look into for recogniz...