logging

Subcribe via RSS for log4j logs?

Is it possible to subscribe to a url with log4j logs? I understand that many applications do have daily error logs notification by email. But a problem with this approach is that the server that host the application may not provide smtp capability. Thus the RSS subscribe approach seens to be more flexibile. Anyone know how is this being...

How do you implement audit trail for your objects (Programming) ?

I need to implement an audit trail for Add/Edit/Delete on my objects,I'm using an ORM (XPO) for defining my objects etc. I implemented an audit trail object that is triggered on OnSaving OnDeleting Of the base object, and I store the changes in Audit-AuditTrail (Mast-Det) table, for field changes. etc. using some method services ca...

Nifty live web tracking

I'm looking for a real time web log watcher that can visually display visitors as they browse around different pages etc. I'd like it to be a web application, it's going to be shown on a big screen in the office. Any tips? ...

.NET Log Soap Request on Client

I'm consuming a third party .NET WebService in my client application. For debugging purposes I want to capture the SOAP requests that are being sent from my server. How would I go about doing this? This is being done on .NET 2.0 without the use of WCF or WSE. ...

How to create a custom log filter in enterprise library 4.0?

I am using Enterprise Library 4.0 and I can't find any documentation on creating a custom logging filter. Has anyone done this or seen any good online documentation on this? ...

Code to logging ratio?

What is the ideal code to logging ratio? I'm not used to writing logs as most of the applications I've developed have not had much logging. Recently though I've changed job, and I've noticed that you can't see the application code for the calls to log4net. I appreciate that this is useful but surely having too many debug statements is j...

What is the best log analysis tool that you used?

I'm starting to work on an existing project that has very verbose logging and the logs are a real pain to go through. Have you guys ever used any tools for log analysis/parsing? Can you recommend me something powerful and easy to customize and use? At first I thought I should write a tool to parse the logs, but I'm thinking maybe somethi...

What the best rollover log file tracelistener for .NET

I'm looking for a good TraceListener for .Net that supports rolling over the log file based on size limits. Constraints Uses .Net built in Trace logging Independent class or binary that's not part of some gigantic library Allows rolling over a log file based on size ...

Online viewing of server logs? Is this encouraged?

I understand that this could be a big security issue if people manage to hack it and able to view the server logs. Is there any application that can actually grab logs and display via web interface with the necessary security imposed? I am talking about java enterprise application ...

Redirect ILog Messages

Hi, I'm currently developing a RCP Eclipse Application. For logging purposes I use SFL4J over log4j. For my own code this works well since I can specify the correct logger ( LoggerFactory.getLogger ... logger.debug...). But how can I redirect all the plugin logs to the same location, so that I can see all exceptions from other rcp plugi...

How to log MethodName when wrapping Log4net?

I have wrapped Log4net in a static wrapper and want to log loggingEvent.LocationInformation.MethodName loggingEvent.LocationInformation.ClassName However all I get is the name of my wrapper. How can I log that info using a forwardingappender and a static wrapper class like Logger.Debug("Logging to Debug"); Logger.Info("Logging ...

Logging in Linux

So I have a daemon running on a linux system, and I want to have a record of its activities: a log. The question is, what is the "best" way to accomplish this? My first idea is to simply open a file and write to it. FILE* log = fopen("logfile.log", "w"); /* daemon works...needs to write to log */ fprintf(log, "foo%s\n", (char*)bar); /*...

How do you log the machine name via log4net?

I am using Log4Net with the AdoNetAppender to log messages from a simple systray application into a SQL Server 2005 database. I want to log the machine name along with the log message because this application will be running on multiple machines and I need to know on which one the message originated. But, I cannot find a way to expose ...

Logging conventions

What conventions do you use for log categories in log4j or similar libraries ? Usually you see class names as categories, but have you used other systems ? What about log levels ? What levels do you use and in which case ? Update: as some of you replied, there is no 'right' answer. I'm just looking for what different conventions people...

Should log file streams be opened/closed on each write or kept open during a desktop application's lifetime?

Should log classes open/close a log file stream on each write to the log file or should it keep the log file stream open throughout the application's lifetime until all logging is complete? I'm asking in context of a desktop application. I have seen people do it both ways and was wondering which approach yields the best all-around re...

How to write from java to the windows event log?

Can you recommend what I should be using to do that? ...

How do I write to a log from mod_python under apache?

I seem to only be able to write to the Apache error log via stderr. Anyone know of a more structured logging architecture that I could use from my python web project, like commons? ...

Logging entry and exit of methods along with parameters automagically?

Is there a way for me to add logging so that entering and exiting methods gets logged along with parameters automatically somehow for tracing purposes? How would I do so? I am using Log4Net. ...

How can I find the method that called the current method?

When logging in C#, how can I learn the name of the method that called the current method? I know all about System.Reflection.MethodBase.GetCurrentMethod(), but I want to go one step beneath this in the stack trace. I've considered parsing the stack trace, but I am hoping to find a cleaner more explicit way, something like Assembly.GetCa...

Blackbox type data logging

In a Linux embedded application I'm developing, there is the need to record some events that happen from time to time. These records are saved on a MTD flash device and once written there is no need to change them or do efficient searches, but read access is required to show the data back to the user. A big problem is that power can go a...