Issue with creating new hierarchy of loggers

2006-01-03 Thread George Sebastian
Hi , I want to create a new Hierarchy of loggers and I am doing something like this private static Hierarchy h =new Hierarchy(new RootLogger(Level.DEBUG)); Logger logger =h.getLogger (XX.class.getName ()); PropertyConfigurator.configure(xx.properties); How do i need to put in the

RE: Dispatch messages to multiple files from the same class with several loggers ?

2006-01-03 Thread Bender Heri
Yes, it is possible. The naming of the loggers is not forced to be class names. You can choose whatever you want. Using class names (including package path) is just a comfort convenience which offers a bulk of advantages. So you are free to define 4 different loggers with distinct names and

[chainsaw] can some one give me a sample XML file wich feed chainsaw with a local log file?

2006-01-03 Thread Legolas Woodland
hi Thank you for reading my post. i tried some ways but i still can not view my log files into chainsaw , indeed i want some help about an XML configuration file which ask Chainsaw to load and show a local log file. the log file is located in my own hard drive.

Re: Logging custom levels using log4j

2006-01-03 Thread Praveen Kumar Hasthalapuram
Thank you very mcuh Scott. So we need to use log4j1.2 only and need to write a filter class which does logging based on specified message, and configure in log4j.xml. Regards, Praveen On 1/2/06, Scott Deboy [EMAIL PROTECTED] wrote: Filters are supported in 1.2 - ExpressionFilter is new with

Re: [chainsaw] can some one give me a sample XML file wich feed chainsaw with a local log file?

2006-01-03 Thread Legolas Woodland
Scott Deboy wrote: There is a sample xml configuration file available from inside Chainsaw: - Start Chainsaw v2 - Select the 'Welcome' tab - The 'Welcome' tab has its own toolbar. Select the 'View example receiver configuration' button on that toolbar. Again, you can also view the JavaDoc

RE: [chainsaw] can some one give me a sample XML file wich feed chainsaw with a local log file?

2006-01-03 Thread Scott Deboy
You can't use file-open or drag-and-drop to process a log4j xml configuration file - file-open and drag-and-drop allow you to open a log file saved using XMLLayout. Instead: Select the View menu, then the Show Application wide preferences menu. At the bottom of this configuration panel, you'll

LogFilePatternReceiver and the tailing option

2006-01-03 Thread rakesh patel
I am using the LogFilePatternReceiver with the tailing option = true. After the initial loading of the file with the log file data, I did not see the subsequent updates in the logfile picked up by chainsaw until I cd to the log file directory and did an ls for the logfiles in question. Has

Help Unsubscribing from this email list!

2006-01-03 Thread John Hunsley
could someone please remove my name from this email list, I've tried emailing the unsubscribe channel but still getting mail. If anyone of you can take a look in the db and remove any email with 'jhunsley' in the string. thanks! John.

RE: LogFilePatternReceiver and the tailing option

2006-01-03 Thread Scott Deboy
I can't imagine ls having an effect on Chainsaw/LogFilePatternReceiver. This could be a 'refresh' problem in Chainsaw - try this: Do whatever you need to do to cause 'ls' to do its trick. Instead of using ls, just minimize Chainsaw and restore it. Do the events display correctly? If so, you

Help with time synchronization

2006-01-03 Thread Prabhat Dalmia
Folks, I see these messages in my error log. The times are out of sync - we have a log messages from a later time getting printed first. I am not sure how can this kind of thing happen. Does anyone have any clues ? 2005-12-14 20:01:58,478 [ctag.ems.raw.HLP_G2CTagRdr.__HLP_G2CTagRdr__01] Status

RE: Help with time synchronization

2006-01-03 Thread Philip Denno
Are you writing to a central location from different machines or different processes? Are you using any Asynchronous appenders? I think you need to provide us with a bit more information. Cheers, Philip. -Original Message- From: Prabhat Dalmia [mailto:[EMAIL PROTECTED] Sent: January

Re: Debug messages going to wrong appender

2006-01-03 Thread Paul Smith
you additivity configuration snippet is close but no cigar, try: log4j.additivity.org.hibernate=false see http://logging.apache.org/log4j/docs/api/org/apache/log4j/ PropertyConfigurator.html#doConfigure(java.lang.String,% 20org.apache.log4j.spi.LoggerRepository) cheers, Paul On

RE: Help with time synchronization

2006-01-03 Thread Prabhat Dalmia
No, I am not writing to a central location from different machines. This is only one machine, and all the threads are on the same machine. I am not sure what do you mean by asynchronous appenders, but I have seen this problem for the first time in last three years. So, I guess we are not

Xml log stopped working

2006-01-03 Thread Steve Pruitt
I had an xml log working with a simple file appender configuration. appender class=org.apache.log4j.FileAppender name=XFA param name=File value=C:/Logs/ddslog.xml/ layout class=org.apache.log4j.xml.XMLLayout/ /appender When I switched it to a

RE: Help with time synchronization

2006-01-03 Thread Philip Denno
And all the running threads are contained in one process? Asynchronous appenders are anything that has it's own thread to manage the file IO, so that the calling thread is not blocked waiting for the disk write. What appenders specifically are you using and how are you calling them? Cheers,

Rendering Exceptions

2006-01-03 Thread William Ferguson
Hi, Most (if not all) of our projects use the PatternLayout to define the layout for our log messages, but I would like to be able to render Exceptions in a different manner. For instance, only render the original stacktrace of a (potentially) rebadged Exception, but include the list of

Re: Help with time synchronization

2006-01-03 Thread Curt Arnold
On Jan 3, 2006, at 3:33 PM, Prabhat Dalmia wrote: Folks, I see these messages in my error log. The times are out of sync - we have a log messages from a later time getting printed first. I am not sure how can this kind of thing happen. Does anyone have any clues ? 2005-12-14 20:01:58,478

Re: Issue with creating new hierarchy of loggers

2006-01-03 Thread George Sebastian
This is what I get at console log4j: Trying to find [log4j.xml] using context classloader [EMAIL PROTECTED] log4j: Trying to find [log4j.xml] using [EMAIL PROTECTED] class loader. log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource(). log4j: Trying to find [log4j.properties]

Paging with chainsaw v2

2006-01-03 Thread Srinivas_Biragoni
Hi All, Is paging possible with chanisaw v2 tool? I am using XML layout in log4j.properties file, i have to display some 100 logs in chainsaw tool but it showing scrolls.How will i get paging with chainsaw. Thanks in advance, Thanks, Srinivas.