Re: Future of JULI<->Log4j bridging

2008-09-02 Thread Brett Randall
Whoops - I lie. I got an older snapshot from that location, and not one later than the same problem described here https://issues.apache.org/bugzilla/show_bug.cgi?id=43567 . Let me go and test a later one. Cheers Brett On Wed, Sep 3, 2008 at 1:51 PM, Brett Randall <[EMAIL PROTECTED]> wrote: >

Re: DEBUG messages appearing on console?

2008-09-02 Thread Patrick . Grimard
Thanks Curt. I implemented your suggestion and got what I was looking for. Thanks David for your suggestion as well. Patrick Patrick - Original Message - From: Curt Arnold [EMAIL PROTECTED] Sent: 09/02/2008 04:47 PM To: "Log4J Users List" Subject: Re: DEBUG messages appearing on co

Re: New Appender: PatternFileAppender

2008-09-02 Thread David Britton
On Tue, Sep 02, 2008 at 09:04:30PM +, Curt Arnold wrote: > > > Could you compare it with the MultiFileAppender that has been > languishing in the sandbox for a while? Search the archives for > MultiFileAppender. Source code at > http://svn.apache.org/repos/asf/logging/sandbox/log4j/multifil

Re: New Appender: PatternFileAppender

2008-09-02 Thread Curt Arnold
On Sep 2, 2008, at 3:38 PM, David Britton wrote: Hello -- I'm not sure if this is the correct way to do this, but my colleague and I have developed a new appender called a PatternFileAppender. I did not see anything else like this in the log4j distribution, but it helped us solve our p

Re: DEBUG messages appearing on console?

2008-09-02 Thread Curt Arnold
On Sep 2, 2008, at 2:00 PM, [EMAIL PROTECTED] wrote: I'm trying to configure log4j so that DEBUG messages or lower priority only appear in a log file and not the console, and anything above DEBUG appears on the console. This is what my log4j.properties file looks like right now, however

New Appender: PatternFileAppender

2008-09-02 Thread David Britton
Hello -- I'm not sure if this is the correct way to do this, but my colleague and I have developed a new appender called a PatternFileAppender. I did not see anything else like this in the log4j distribution, but it helped us solve our particular problem, and I think it's a good general purpose a

Re: DEBUG messages appearing on console?

2008-09-02 Thread David Britton
On Tue, Sep 02, 2008 at 07:00:22PM +, [EMAIL PROTECTED] wrote: > > I'm trying to configure log4j so that DEBUG messages or lower priority only Please see the following answer I recently gave: http://mail-archives.apache.org/mod_mbox/logging-log4j-user/200808.mbox/[EMAIL PROTECTED] -- D

DEBUG messages appearing on console?

2008-09-02 Thread Patrick . Grimard
I'm trying to configure log4j so that DEBUG messages or lower priority only appear in a log file and not the console, and anything above DEBUG appears on the console. This is what my log4j.properties file looks like right now, however the DEBUG messages are still appearing on the console. I'm us

Re: HOw to replace the system.out.println

2008-09-02 Thread Thorbjørn Ravn Andersen
Curt Arnold skrev den 02-09-2008 19:01: The suggestion introduces SLF4J into the mix with explanation and goes through a lot of effort to evaluate the class of the calling statement for categorization when the cost might be excessive. It would seem that if you replaced the System.println(.

Re: HOw to replace the system.out.println

2008-09-02 Thread Curt Arnold
On Sep 2, 2008, at 10:34 AM, Thorbjørn Ravn Andersen wrote: MY POI skrev den 02-09-2008 14:34: Thanks a lot..but here we are having hundreads of classes.. in this case any solution is there This might help you getting started: helpers/FooBar.java = package helpers; public class FooBa

Re: single line to diffrent log file

2008-09-02 Thread David Britton
On Sat, Aug 30, 2008 at 05:21:51PM +, praveen#123 wrote: > > > can any one healp me > to log single line to a diffrent log file and all other logs of the same > class to the other log file I only know of two straightforward ways to do this: 1) Create two loggers which could then do whateve

Re: HOw to replace the system.out.println

2008-09-02 Thread Thorbjørn Ravn Andersen
MY POI skrev den 02-09-2008 14:34: Thanks a lot..but here we are having hundreads of classes.. in this case any solution is there This might help you getting started: helpers/FooBar.java = package helpers; public class FooBar { public static void main(String[] args) { System

RE: HOw to replace the system.out.println

2008-09-02 Thread Michael Erskine
MY POI [mailto:[EMAIL PROTECTED] wrote: > Subject: Re: HOw to replace the system.out.println > Thanks a lot..but here we are having hundreads of classes.. > in this case any solution is there I'd use Awk or Perl to make the edits for me. If you don't want to make any edits then you have plenty of

Re: HOw to replace the system.out.println

2008-09-02 Thread MY POI
Thanks a lot..but here we are having hundreads of classes.. in this case any solution is there thanks Ognjen Blagojevic wrote: > > MY POI wrote: >> Dear all >> >>I want to use the logging system in my Project which consist >> of >> many modules developing by the >> >> much dev