Re: XmlSocketReciever / Chainsaw

2008-07-08 Thread Maarten Bosteels
Hi, Which class are you using for sending (XML formatted) logging events from java.utils.logging to chainsaw ? Maarten On Tue, Jul 8, 2008 at 9:38 PM, Scott Deboy <[EMAIL PROTECTED]> wrote: > The msgs you're seeing in the chainsaw-log tab are not errors, they're > letting you know that if you a

Re: fixedWindowRollingPolicy.setFileNamePattern

2008-07-08 Thread Jacob Kjome
Ok, well, I checked it out and used Maven 2.0.9 to build. I just typed "mvn install". It ran all tests and built the binary in 2 minutes. What problem did you have? Are you missing repositories in your ${user.home}/.m2/settings.xml? Jake Jacob Kjome wrote: > There is a plan to release it. I

Re: HeaderPatternLayout - feedback / review needed

2008-07-08 Thread Lilianne E. Blaze
Jacob Kjome wrote: Seems useful. Just a few questions When Append="true" I presume the header will get written again, right? So, it Basically, yes. wouldn't just exist on the first line of the log file, but on the first line of logging per appender configuration pointing at a given lo

Re: HeaderPatternLayout - feedback / review needed

2008-07-08 Thread Jacob Kjome
Seems useful. Just a few questions When Append="true" I presume the header will get written again, right? So, it wouldn't just exist on the first line of the log file, but on the first line of logging per appender configuration pointing at a given log file. Also, in the example, you don't u

Re: HeaderPatternLayout - feedback / review needed

2008-07-08 Thread Lilianne E. Blaze
Hello, Guys? I'd really appreciate _some_ feedback? Greetings, Lilianne Lilianne E. Blaze wrote: Hello, Could you please take a look at http://www.lilianne-blaze.net/wiki/bin/Java/HeaderPatternLayout ? Mostly inspired by http://juliusdavies.ca/logging.html (search for "A Log Rotation Best P

Re: fixedWindowRollingPolicy.setFileNamePattern

2008-07-08 Thread Jacob Kjome
Eric Kolotyluk wrote: > Hey thanks. I can't seem to find a similar set of extras for log4net. Is > there a similar file name patter manipulator for log4net somewhere? I can't speak for Log4net. I suggest pinging the Log4net lists with your questions... http://logging.apache.org/log4net/mail-lis

Re: fixedWindowRollingPolicy.setFileNamePattern

2008-07-08 Thread Jacob Kjome
There is a plan to release it. I think it's been waiting on Chainsaw 2 (or vice-versa). The extras are meant to work with Log4j 1.2. Haven't tried to build it in a quite a while. I might have a crack at it tonight. Jake Eric Kolotyluk wrote: > Well, that was a good try > > The extras do no

RE: XmlSocketReciever / Chainsaw

2008-07-08 Thread Scott Deboy
The msgs you're seeing in the chainsaw-log tab are not errors, they're letting you know that if you are using a receiver that has external library dependencies (vfslogfilepatternreceiver, customsqldbreceiver, etc), those external libraries won't be found because you don't have a 'plugins' folder un

RE: XmlSocketReciever / Chainsaw

2008-07-08 Thread Shriver, Daniel
I took the example and filled in my values to get what I have. Looking at the example XMLSocketR... vs. mine I found it didn't specify a host. So I changed mine to remove the host and got the same results. I still don't get what the meaning of the exceptions in the chainsaw log is (they are in th

RE: fixedWindowRollingPolicy.setFileNamePattern

2008-07-08 Thread Eric Kolotyluk
Well, that was a good try The extras do not come with a jar file and trying to build the distribution fails. I would prefer it if someone would just add this functionality to the 1.2 stream, at least that's a properly maintained release. - Eric -Original Message- From: Jacob Kjome [mail

RE: XmlSocketReciever / Chainsaw

2008-07-08 Thread Scott Deboy
At first glance, assuming HOST and port1 and port2 are actual values, your configuration looks ok. Try using the example receiver configuration provided by Chainsaw (Welcome tab, the view example receiver configuration button on the Welcome tab). Scott Deboy -Original Message- From: Sh

RE: fixedWindowRollingPolicy.setFileNamePattern

2008-07-08 Thread Eric Kolotyluk
Hey thanks. I can't seem to find a similar set of extras for log4net. Is there a similar file name patter manipulator for log4net somewhere? Cheers, Eric -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 8:29 AM To: Log4J Users List Subject: Re:

Re: fixedWindowRollingPolicy.setFileNamePattern

2008-07-08 Thread Jacob Kjome
See the rolling package in the Log4j "extras" companion... http://logging.apache.org/log4j/companions/extras/index.html Jake On Tue, 8 Jul 2008 08:04:49 -0700 "Eric Kolotyluk" <[EMAIL PROTECTED]> wrote: One of the nice features I like in log4j 1.3 is FixedWindowRollingPolicy#setFileNamePatte

fixedWindowRollingPolicy.setFileNamePattern

2008-07-08 Thread Eric Kolotyluk
One of the nice features I like in log4j 1.3 is FixedWindowRollingPolicy#setFileNamePattern(); The log4j default rolling pattern looks like mylog.log1, mylog.log2, ... This makes it difficult for desktops to associate the file-type with application used for opening the log file for viewing so I li

XmlSocketReciever / Chainsaw

2008-07-08 Thread Shriver, Daniel
I'm having trouble with configuring Chainsaw. Basically I'm trying to get logging output from one application (that has log4j embedded in it) and a lower level (that has java utils logging embedded in it). So, I have a socket receiver for the log4j stuff (and it works fine), and an XMLSocketRecie

Re: DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
[EMAIL PROTECTED] skrev den 08-07-2008 12:02: Hi, I am using DailyRollingFile Appender for manage my log. but i want to backup just the last 5 days? is that possible to do that? The DailyRollingFileAppender does not keep track of versions back in time, so it cannot do what you want. I would su

Re: Replace a file in DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
Aggarwal, Rajat skrev den 08-07-2008 11:12: Hi Thorbjørn Actually, I have a created a logger instance and am adding an appender to it through my java code. So, I am not sure if I still need to make configuration entries in log4j.properties file. If you want, I can also send across the piece

RE: "additivity" attribute does not work for user-defined logger but works for root logger.

2008-07-08 Thread Camer38
Thanks a lot, it makes perfect sense. I think that i use MDC or NDC(the code works only on server side). In my code I am able to name a thread an reuse it, so this gives additional solution. Bender Heri wrote: > > OK, in the following I denote foo.bar.XY as AppA and com.create.CR as > AppB an

Syslog message is sent twice in the case no log4j configuration file is used

2008-07-08 Thread Berwanger, Christian
Hi log4j comunity, I'm using the log4j appender in order to send my log message to a remote host. I decided not to use the config file because the application itself is already using a central config file which I want to use to read my configurable data (like hostname, port...). However when I'

DailyRollingFileAppender

2008-07-08 Thread [EMAIL PROTECTED]
Hi, I am using DailyRollingFile Appender for manage my log. but i want to backup just the last 5 days? is that possible to do that? Which log4j version that support my needs? this my properties file. - #set the level of the root logger to DEBUG and set its appender as an appender named X

creating new directory with DailyRollingFileAppender ....

2008-07-08 Thread Tushar Chauhan
Hi all, I am using DailyRollingFileAppender for managing logs in my application. I want to create separate folder for logs on hourly basis. For example, Within the logs/ dir I would like to have a folder with today's date and within that date folder I have to create logs for eac

RE: Replace a file in DailyRollingFileAppender

2008-07-08 Thread Aggarwal, Rajat
Hi Thorbjørn Actually, I have a created a logger instance and am adding an appender to it through my java code. So, I am not sure if I still need to make configuration entries in log4j.properties file. If you want, I can also send across the piece of code I have written for thee same. Thanks a

Re: Replace a file in DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
Aggarwal, Rajat skrev den 08-07-2008 07:44: Hi All, Is there any way we can replace a file attached to a particular appender using java code? I am using DailyRollingFileAppender for my purpose and want to log to separate files depending upon certain configurations made in the database. Can

Re: precision of log4j

2008-07-08 Thread Thorbjørn Ravn Andersen
sana qadir skrev den 08-07-2008 05:18: Despite synchronizing the time on the two machines using NTP, I am getting not only poor resolution but also negative propagation values which are ridiculous. Any idea about how I can get better resolution is this scenario Sounds like you have to do a ro