logging

Logging in Java and in general: Best Practices?

Hi Everyone! Sometimes when i see my logging code i wonder if i do it right. There might be no definitive answer to that, but i've folling concerns: Library Classes: I have several library classes wich might log some INFO messages. Fatal Errors are reported as exceptions. Currently i have a static logger instance in my classes with the...

log4j category

I have the following on my log4j.properties log4j.rootLogger = debug, stdout, fileLog log4j.appender.stdout = org.apache.log4j.ConsoleAppender log4j.appender.fileLog = org.apache.log4j.RollingFileAppender log4j.appender.fileLog.File = C:/logs/services.log log4j.appender.fileLog.MaxFileSize = 256MB log4j.appender.fileLog.MaxBackupIndex...

Data mining logs to locate a bug

I'm working on a data distribution application which receives data from a source and distributes that data to multiple target application. After successfully distributing several messages each second for 8 days, it missed a single message and did not deliver it properly to the clients. As I was looking at the logs I tried to find someth...

Are there any frameworks or libraries for logging errors remotely with .Net?

I'd like all of my .Net applications to be able to log unhandled exceptions via the internet when a connection is available. Are there any libraries people use for this purpose (preferably free/open source)? ...

Log4Net incubating?

What does this mean "incubating"? well i know what the word means but why are the file named as "incubating-log4net-1.2.10.zip" Apache? Is log4net still under development as the last release was 2006? ...

java logger to one file over several classes and packages

I'm trying to figure out how to use the java.util.logging features. All of the tutorials show how to log to a log file from the main class, but I cannot figure out how I can log to one file in various classes. I have a web service and a web service client and I'd like to be able to log errors on the web service while using the web serv...

gnuplot vs matplotlib

I've started on a project graphing tomcat logs using gnuplot-py, specifically correlating particular requests with memory allocation and garbage collection. What is the collective wisdom on gnuplot-py vs matplotlib for python graphing. Are there better graphing libraries out there I haven't heard of? My general considerations are: Wh...

Web App has My.Application.Log instead of My.Log

According to the MSDN documentation (http://msdn.microsoft.com/en-us/library/ms172987.aspx), the My.Application.Log property is used to write log entries for client applications, and the My.Log property is used to write log entries for web applications. However, I have a web application with a bunch of My.Application.Log calls in the .a...

Usage of log4net in .net petshop 4

I have a question regarding log4net usage for logging information in .net petshop 4 application.How do I use it to log informaton related to size of the message and time at which logging occurs.Please help !I have tried opening .net petshop using visual c# express edition 2008 and visual web developer 2008 but the solution items are unav...

Apache httpd cluster logging

I have a cluster of Apache httpd servers. It's a load balanced cluster where all nodes serve the same, shared, content. The content itself is located on a shared storage. I would like to setup all nodes to log (server access logs) to the same log file (again on the same shared storage), but I am concerned that this would create concurre...

What security events does one audit for a line of business application?

I already audit authorization success, failure and logout. I've considered auditing (logging) every method call and keeping a version of every row and column that was ever modified, but both of those options will greatly increase the complexity of auditing. Auditing a random subset sees too random. The legal specs (FISMA, C&A) just sa...

Tomcat 6 and log4j application logging produce no output

I'm trying to get log4j application (webapp) logging working in a Tomcat 6 app. I have log4j-1.2.15.jar in my WEB-INF directory, log4j.dtd and log4j.xml in WEB-INF/classes. My log4j.xml looks like: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" > <log4j:configuration> <appender name="massAppende...

Ruby - share logger instance among module/classes

Working on a little Ruby script that goes out to the web and crawls various services. I've got a module with several classes inside: module Crawler class Runner class Options class Engine end I want to share one logger among all those of those classes. Normally I'd just put this in a constant in the module and reference it like ...

Different behavior of python logging module when using mod_python

We have a nasty problem where we see that the python logging module is behaving differently when running with mod_python on our servers. When executing the same code in the shell, or in django with the runserver command or with mod_wsgi, the behavior is correct: import logging logger = logging.getLogger('site-errors') logging.debug('log...

Separate production database for logging

I've got an application in test that's logging events for a departmental Windows forms application to a SQL Server database. The application is nearly ready for production. The logging database is completely separate from the application database. My question is, do I really need to create a production version of the logging database, ...

System.Diagnostics.StackTrace or System.Diagnostics.StackFrame for debugging ? Why

Is this code: System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(); System.Reflection.MethodBase methodBase = stackFrame.GetMethod(); stackFrame.GetFileName(); stackFrame.GetFileLineNumber(); better for debugging compared to using a System.Diagnostics.StackTrace ...

sharepoint logging/trace

how can i perform logging in sharepoint. i want to use tracing. so that it logs in the 12 hive logs. ...

Application Logs in Win Form Application

What is an application log? How is it different from Error Log? What kind of information should Application log file contain. Are there any built in classes which I can use for that? ...

Best way to add logging in existing application (windows or web) .Net

Hi guys, I have inherited couple of .Net (C#) application which does not have any tracing or logging added to it. This application does everything from Creating , Reading , Updating and deleting records. It sends email and calls web services. Of course it is a nightmare to maintain it because there is no logging and no try catch mecha...

Creating a logging handler to connect to Oracle?

So right now i need to create and implement an extension of the Python logging module that will be used to log to our database. Basically we have several python applications(that all run in the background) that currently log to a random mishmash of text files. Which makes it almost impossible to find out if a certain application failed o...