logging

Framework for Monitoring logs of an application

hello I am working on writing an web application which will be monitoring an java process which moves files from one location to another. The monitoring application needs to do following things Monitor log files View the content of moved files Is there any opensource framework which provides monitoring capabilities over logging. I ...

log4j: Change format of loggers configured in another library.

Using clojure, I've been able to successfully setup log4j very simply by using this log4j.properties file, and including log4j in my classpath. # BEGIN log4j.properties log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout log4j.appender.STDOUT.layout.ConversionPattern=%d{MMd...

Symbolicate adhoc iphone app crashes.

Hey everyone, I can't manage to make my code symbolicated ... I read the part "below" : Given a crash report, the matching binary, and its .dSYM file, symbolication is relatively easy. The Xcode Organizer window has a tab for crash reports of the currently selected device. You can view externally received crash reports ...

How to log to user's ApplicationData folder using Enterprise Library Logging?

I'm using MS EnterpriseLibrary.Logging and that works perfectly but the log file(s) are placed in the program executable directory. How do I get it to place my log files in individual user's applicationData folder? The folder I'm talking about is the one you get by calling: Environment.GetFolderPath(Environment.SpecialFolder.Applicat...

Logging which is the best way

Hi People who talk about loggers here never talke about EventLog, I think this is good for windows system. Is it reliable, or I found it dead in some bad morning? EventLog let you can create a specific folder or folders for your application, I I am thinking in EventLog because both Front End and Back End and anything on the server can...

Logging URLs in Apache Tomcat

Hi, I was wondering if there is some configuration, built-in functionality in tomcat that logs the URLs people are using to reach your website? for example: http://www.mypage.com/1.htm http://www.mypage.com/2.htm http://www.mypage.com/3.htm etc etc Can we enable some tomcat setting that would log which pages are being accessed the mos...

Coordinated logging in a SharePoint farm

We are deploying web parts to SharePoint 2007 and would like to include logging (log4net). The ideal solution would be to use a database appender to avoid the problems with knowing which actual server is executing the web part. This questions has been helpful: http://stackoverflow.com/questions/219668/sharepoint-and-log4net. I've got ...

special debugging lines (java)

Recently i've found myself writing a lot of methods with what i can only think to call debugging scaffolding. Here's an example: public static void printArray (String[] array, boolean bug) { for (int i = 0; i<array.lenght; i++) { if (bug) System.out.print (i) ; //this line is what i'm calling the debugging scaffoldi...

Real-time aggregation of files from multiple machines to one

I need a tool which gets a list of machine names and file wildcards. Then it connects to all these machines (SSH) and begins to monitor changes (appendings to the end) in each file matched by wildcards. New lines in each such file are saved to the local machine to the file with the same name. (This is a task of real-time log files colle...

What CPAN module can summarize Perl error logs?

I'm maintaining some website code that will soon dump all its errors and warnings into a log file. In order to make this a bit more pro-active I plan to parse this log file daily, summarize the warnings and errors (i.e. count the occurrence of each specific one and group by either warning/error) and then email this to the devs on the pro...

Squid logs on mongodb

Hi, I'm planning to log my squid instances to a mongodb, but the actual problem is that we have a huge traffic to be logged, every access authenticated with user/pass. Eventually we have to make some reports based on logs. I was thinking to insert the logs distributed by months and by users, so my collection will look like this: {month:...

how to configure my own formatter in java logging property file

For my java project, i am using the java logging api. I want to log everything using a property file. Before using this file (log.properties), I configured my onwn formatter in the java code. (see below) Now I want to configure my own fomatter in the propertie file, instead of the java code. does someone know how to do that ? Format...

A tool or framework extension or code snippet for logging the internal state of objects?

When spiking on how something works or when my unit test behave in an unpredictable manner I usually have to drop into debug mode. 99% of my time in debug mode is spent checking the values of fields on objects to verify its state. I already have log4net set up, it would seem that if I could easily add a line of code to log out the st...

What do you think of saving stack trace in a special log table ?

Suppose, you have a special log table of your application. What do you think about creating a BLOB field for a possible stack trace ? Logging is done to file as well, but it is not so convenient to read a text file, moreover database is more "accessible". ...

Where/how does log4j look for a log4j.properties file?

I'm trying out log4j in a simple test app. I create a new Java project in eclipse and add the log4j JAR (v1.2.16) to my build path. I then create a simple class that prints Hello World. Then I use the log4j Logger class to log a info message. When I run the app, I see the log message, using what I assume is the default appender and layou...

use doctest and logging in python program

#!/usr/bin/python2.4 import logging import sys import doctest def foo(x): """ >>> foo (0) 0 """ print ("%d" %(x)) _logger.debug("%d" %(x)) def _test(): doctest.testmod() _logger = logging.getLogger() _logger.setLevel(logging.DEBUG) _formatter = logging.Formatter('%(message)s') _handler = l...

heroku time zone problem, logging local server time

UPDATE: Ok, I didn't formulate a good Q to be answered. I still struggle with heroku being on -07:00 UTC and I at +02:200 UTC. Q: How do I get the log written in the correct Time.zone ? The 9 hours difference, heroku (us west) - norway, is distracting to work with. I get this in my production.log (using heroku logs): Processing Pro...

Could Python's logging SMTP Handler be freezing my thread for 2 minutes?

A rather confusing sequence of events happened, according to my log-file, and I am about to put a lot of the blame on the Python logger, which is a bold claim. I thought I should get some second opinions about whether what I am saying could be true. I am trying to explain why there is are several large gaps in my log file (around two mi...

log4j vs. System.out.println - logger advantages?

Hi! I'm newly using log4j in a project. A fellow programmer told me that using System.out.println is considered bas style and that log4j is something like standard for logging matters nowadays. We do lots of JUnit testing - System.out stuff turns out to be harder to test. Therefore I began utilizing log4j for a Console controller clas...

How to know about MySQL 'refused connections'

Hello, I am using MONyog to montitor my two mysql servers. I get alert emails from MONyog when something goes wrong. There is an error I could not find out why. It says: Connection History: Percentage of refused connections) - 66.67% the percentage is not important, this is just about having refused connections. I get this email e...