logging

How can I find out the amount of open sessions programatically in Tomcat using Java?

Is it possible to find out the number of open sessions reliably in Tomcat (i.e. not only the amount of users who have logged in since [current time]-[session time out], but the number of sessions stored on the server)? ...

What should I log in AJAXy web application and how long to store the logs?

After some time of developing AJAXy application I found out, that my log files are growing drasticaly fast. Even when I am the only user testing the application, I get about 90MB of log ever few hours. I'm logging every request, parameters and how long did it take, so single log isn't very large (not bigger than 4 lines), but since ther...

Ways to standardize logging in a large Java application

In a large application logging is essential, but when many developers work on the code, the logs can become chaotic. One might write: log.info("Loaded " + rowCount + " recodrs from the database."); Another might do something like: log.debug("Records read={}", rowCount); A third developer might think this is the proper way: log.tra...

How to log the time taken by methods in Springframework?

Is it possible in springframework to log the time taken by methods [ selective | all ] automatically. By automatically i mean, i don't want to go to each method and write the log.debug ( "...." ); stuff. ...

Logging across multiple web servers

Hi, I would like to know how people dealing with logging across multiple web servers. E.g. Assume there are 2 webservers and some events during the users session are serviced from one, some from the other. How would you go about logging events from the session coherently in one place (without e.g.creating single points of failure)? A...

Windows text editor that shows/hides lines based on RegEx or Grep syntax?

Hi, all. One of my application components produces some extremely hairy log files. They require a lot of poking and prodding before they produce useful information. I'm on the hunt for a text editor for windows that will let me enter text in either RegEx or Grep-style syntax, and automatically show/hide the relevant lines. Does anyon...

Log output of multiprocessing.Process

Is there a way to log the stdout output from a given Process when using the multiprocessing.Process class in python? ...

JBoss Log File Maintenance/Cleanup

Hi, I am running JBoss 4.0.2 server and over the years it has created a large number of log files that I would like to clean up. I would like to keep the same logging level but also have it delete any log files older than 3 months. Is there a way to do that in the configuration or should I just write a perl script? Thanks. ...

Is spam mail killing website authentication ?

I have so much difficulty sending authentication mail to new user that I'm considering relying only on third party logging system like stackoverflow does. The problem is that contrary to this site, my website is targeted to a not so tech-savy audience. So two questions arise: What are the solution to get a rock solid email delivery so...

Logging a subset of messages by context.

The applications I work on do a hell of a lot of things and I find it quite difficult to parse through the logs when I'm going over them. Especially when I'm debugging/testing a particular bit of code. and have to wade through pages and pages of irrelevant log data. Is there a sensible way to manage logging (Primarilly in Java, But also...

Custom front end and back end with Pantheios logging

Apologies if I'm missing something really obvious, but I'm trying to understand how to write a custom front end and back end with Pantheios. (I'm using it from C++, not C.) I can follow the purposes of the initialisation functions (I think) but I'm unsure about the others: pantheios_be_logEntry, pantheios_fe_getProcessIdentity and panth...

HTTP POST and GET request for WinXP

I remember that there is a folder in the c:\Windows\system32 where all the HTTP POST and GET request are logged. I cannot find the folder in the net. Does anybody know where that folder is? ...

How to log my traceback error?

I've been trying to get this working, but for some reason it's giving me errors... How can I log my python errors? try: pass #CODE HERE except: pass #LOG TRACEBACK ERROR ...whatever that error may be ...

Tomcat Logging while running as a windows service

I have a web application running under Tomcat. Logging for various features is implemented using java.util.logging. When running tomcat via startup.bat the logging files are created and record the logging as expected. When running as a windows service using the same war file the output from logging is virtually absent. There is some (...

Implementing custom logging of WCF messages client-side

A collegue of mine needs to implement custom logging of WCF messages, for debugging purposes, but also for traceability (logged data will be saved for future reference and verification). Examples like this one, Capture XML In WCF Service, shows how to do this for the host, but he needs it for the client application. Can anyone help me/...

How to get the IP Address of the Remote Desktop Client?

Hi, I'm trying to write a script to log the IP address of the Windows client from which the user initiated Remote Desktop to log in to the Windows Server. How to capture the IP address of the client in the Server? ...

Coldfusion logging issue

Hello, I have an error that keeps popping up in my application log file every now and then. "Error","jrpp-2297","09/30/09","07:40:07","appname","Invalid data for CFSQLTYPE CF_SQL_BIGINT. The specific sequence of files included or processed is: E:\inetpub\wwwroot\a\viewReport.cfm, line: 56 " Is there any way that I can trap all param...

In an ISAPI filter, what is a good approach for a common logfile for multiple processes?

I have an ISAPI filter that runs on IIS6 or 7. When there are multiple worker processes ("Web garden"), the filter will be loaded and run in each w3wp.exe. How can I efficiently allow the filter to log its activities in a single consolidated logfile? log messages from the different (concurrent) processes must not interfere with eac...

Pear Log MDB2 message length and errors

Hey all, I recently set up a SQL logging framework with PEAR, and everything was working fine. However, I thought that the default length of the message field (VARCHAR 200) was a little short, so I changed my database structure in phpmyadmin to increase this to 512. However, I quickly realized that this changed completely stopped loggi...

java: log exception being thrown

In java, I want to log the exception being thrown from a piece of code: try { doRiskyThing(); } catch(Throwable t) { log.warn("too bad"); throw t; } The problem is that now my method must declare it throws throwable. On the other hand, if I log the exception in a finally block, how do I know what exception is being thrown...