logging

How to log user operations in a web application?

Hi. The environment of my application: web-based, Spring MVC+Security, Hibernate, MySQL(InnoDB) I am working on a small database application operated from a web interface. There are specific and known users that handle the stored data. Now I need to keep track of every create/update/delete action a user executes on the database and pro...

How-to create a simple example Console application for developing separate classes for test driven development?

Hi all! My intend is to create a simple easily debuggable console application which will be the template ( or starting point ) for test driven developing single classes in C#. The purpose is to have a simple folder where this console app will reside and just copy paste the folder open the new project and start writing the new class. As s...

Which Logging tools do you use for Windows?

I'm looking at adding logging to an application, and I'm considering using Kiwi syslogd and a freeware library (clSyslog) to send logging messages to the daemon. I briefly looked at log4c, and found compiling it with VC++ would take me more time than I had. What tools do you use and recommend for logging messages? ...

Is it possible to access some sort of system error log on S60 devices?

Hi, this my first shot at this awesome new (to me) programmers site, I hope someone is capable of enlightening me some :) Does anyone know if it is is possible to access some sort of error log on s60 devices? The only thing i can find that is somewhat related is a log of recent send/received packets and calls... The emulator is not a op...

Why does python logging package not support printing variable length args?

When I first learned Python, I got used to doing this: print "text", lineNumber, "some dictionary", my_dict When I wrote my own logging facility, I naturally wanted to be able to hand it an arbitrarily-sized list of items, so I did this: def error(*args): print ERR_PREFIX, for _x in args: print _x, print "\r\n", err...

How many times was logging.error() called?

Maybe it's just doesn't exist, as I cannot find it in pydoc. But using python's logging package, is there a way to query a Logger to find out how many times a particular function was called? For example, how many errors/warnings were reported? ...

.NET Logging Class with Fluent Configuration

Is there a .NET logging class that does not rely on XML configuration files? I thought is was possible with log4net but can't find any info. ...

What .NET instrumenting framework would you recommend and why?

I only have experience with log4net however that does not mean that there are not better fish in the sea. I don't have time to go fishing but I do I have 60 seconds to post to SO. So what all has everyone used and their experiences with it? I understand this is subjective, but please provide concrete reasons of why you have your opin...

Clearing the log associated with a tracelistener after each run ?

I'm using TextWriterTraceListener for logging, which is being configured into the app using app.config as shown below. <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.diagnostics> <trace autoflush="true" indentsize="100" > <listeners> <add name="myListener" type="System.Diagnostics.TextWriterTraceLi...

Performance tracing in c#

Hi, I would like to trace performance inside a c# mobile application, in order to know the amount of time needed by some long-running methods. The goal is to know the performance at the level of methods. This tracing would be decided at runtime. First idea that came is to maintain a global variable "doWeHaveToTrace", to check it each t...

IIS log files and load balancer?

We host our ASP.NET applications on two web servers (Server 2003, IIS 6) that reside behind a hardware load balancer. When I look at the IIS logs, the c-ip value in the IIS (v6) logs are ALWAYS the IP address of the load balancer. I noticed in the http headers, there is an X-Forwarded-For header that appears to have the requesting IP add...

Should I turn off IIS 6 logging?

What are some reasons why I wouldn't want to disable IIS logging completely for a small use (100 user) intranet application? I'm not an Ops person (just pretending to be one for this app), so I've never had to be concerned with this stuff before. ...

logging in mod_python/apache

What is the standard way to make python's logging module work with apache/modpython? I want to call mylog.warn('whatever') and have that result in a call to req.log_error() where req is the modpython request. Is there an easy way to set this up? ...

How to use \L DOS command for creating Log file in SSIS

Hi, I'm trying to use the below command to execute for generating the log file for SSIS package. DTExec /FILE "C:\Documents and Settings\CP0808\My Documents\Test.dtsx" /logger "DTS.LogProviderTextFile;c:\log.txt" But it got the error as below. Please advise. Started: 12:03:20 AM Error: 2009-05-04 12:03:21.15 Code: 0xC001000E ...

How to log on JBoss console

I'm experimenting with Netbeans and JBoss and I'd like to print stuff on JBoss console from my code. Can I use log4j for that? ...

MySQL Query Logging to Syslog-ng server.

Is it possible to log queries to a central syslog-ng server? Need to have mysql query logs present in an existing centralized log server. ...

Correlate application logs (Coldfusion/J2EE) with IIS logs to debug client network problems

I've seen some clients complaining about slowness of my website lately and I'm pretty sure that the problem is related to their network. I'd like to be able to justify this to myself more thoroughly and also be able to more proactively reach out to clients that appear to be having network issues before they come banging on my door. If ...

How to trace the connection pool in a Java Web application - DBMS_APPLICATION_INFO

Hello, I need improve the traceability in a Web Application that usually run on fixed db user. The DBA should have a fast access for the information about the heavy users that are degrading the database. 5 years ago, I implemented a .NET ORM engine which makes a log of user and the server using the DBMS_APPLICATION_INFO package. Using ...

How can I get around this classloader hierarchy problem?

I run iplanet's java applcation server, something in it is loading commons-logging-1.0.4.jar That's fine until one of my applications calls AuthSSLProtocolSocketFactory which is another apache library that also uses commons logging. I put the jar on the jvm classpath and get this error Invalid class loader hierarchy. You have more tha...

Rails: How can I log on which site my javascript is embedded?

My site provides a javascript that shows the rate of the Dutch equivalent of the Dow Jones index. Users can embed this script in their website. It looks like this: <script type="text/javascript" src="http://www.aexscript.nl/r/gratis"&gt;&lt;/script&gt; The corresponding controller action looks like this: def show @script = Script....