Re: re-routing of System.out to SWING component

2007-06-21 Thread Thorsten Möller
On Wednesday, June 20, 2007 10:12 PM [GMT+1=CET],
Curt Arnold <[EMAIL PROTECTED]> wrote (with possible deletions):

> Use log4j-1.2.14 (or later) and specify follow=true in your
> configuration of your console appender and it will follow subsequent
> redirections of System.out.  See bugs 31056 and 37122.
Thanks Curt, this is exactly what I need and works nice now! 

Thanks again,
Thorsten




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log4jME

2007-06-21 Thread Keith Gardiner
Hi,

 

I am trying to use Log4jMini on a Symbian S60 3rd edition phone. I cannot
seem to get the jar file included in the jar at build time. Has anyone
managed to use Log4jMini in this way?

 

Keith.

 


This message has been scanned for content and viruses by the DIT Information 
Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie

Log4j Appender Piping and Rollover

2007-06-21 Thread ZalleCool

Hi there,

I would like to be able to pipe the output of a custom appender to
DailyRollingFileAppender.  How can I do that?  Secondly, I want the name of
the active file to be different from that of the rolled over log files.  Is
this possible with DailyRollingFileAppender?

We are using XML based configuration file for log4j.  I have been googling
around to get this information however to not much success so far, so if
some one can tell me how to do this using that the xml config file, I would
greatly appreciate it.

I believe the version of log4j we are using at the moment is 1.2.8 but can
upgrade if need be.

Kind Regards,
Zalle


-- 
View this message in context: 
http://www.nabble.com/Log4j-Appender-Piping-and-Rollover-tf3958043.html#a11230961
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Log4j Appender Piping and Rollover

2007-06-21 Thread James Stauffer

What does your custom appender do?  Look at how AsnycAppender sends
its output to another Appender.

DailyRollingFileAppender doesn't allow much variation between the
active and rolled filename.  Can you give an example of what you want?

On 6/21/07, ZalleCool <[EMAIL PROTECTED]> wrote:


Hi there,

I would like to be able to pipe the output of a custom appender to
DailyRollingFileAppender.  How can I do that?  Secondly, I want the name of
the active file to be different from that of the rolled over log files.  Is
this possible with DailyRollingFileAppender?



--
James Staufferhttp://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Chainsaw config problem

2007-06-21 Thread akshay kumar
Hi Paul,
  Got your point and thanks a ton for your suggestions.
  I used the specific logger and it is working.
  However, what this logger is doing,  It is filtering logs from the chainsaw 
itself,
  1) that means now my logs are not coming into chainsaw but it is directly 
going to the log file which I dont want.
   
  Specifically I want that it should display logs to the chainsaw but while 
storing that into log file, it only stores the logs of my application not 
internal chainsaw logs.
   
   2) In my application I have more then one logger, so to get logs from all, 
the general solution I can think is paste the same appender number of times and 
just change the logger name, this way it can work but is it possible that I can 
specify all my loggers at one place with just one appender? How can I do that?

thanks in advance.
Paul Smith <[EMAIL PROTECTED]> wrote:  
On 21/06/2007, at 2:50 PM, akshay kumar wrote:

> Hi Paul,
> great!!..It is working fine now!
> However I got few more confusions!!..:(
> 1) As I am using pattern layout, I am not able to Drag and Drop 
> this file into my chainsaw
> And if I use XML layout instead of patternlayout the Timestamp 
> information comes in the log file is weird. I want the timestamp in 
> ISO8601 format only. Please tell me what can be the solution.

The solution is to have 2 appenders: 1 in XMLLayout format, the other 
in the human-readable format. If you name these log files 
appropriately and put them side by side each other, then you can view 
one with some other tool, and drag it's companion XML version into 
Chainsaw.

> 2) If I want to filter the chainsaw internal logs in my log file 
> how can I do that?

Only attach the XMLLayout and/or PatternLayout appenders to the root 
logger of your own package naming hierarchy. Right now you have 
attached them to the root logger. If your own logging events belong 
to, say, the 'com.mycompany.myproduct.LoggerA' Logger, then you could 
attach the appender to the "com.mycompany" logger. Something like:

class="org.apache.log4j.DailyRollingFileAppender">








value="[%d{ISO8601} %-5p][%20.20c][%t] %m%n"
/>



(do the same sort of thing for XML version, just use a different 
Layout)








...

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
-
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

Re: Log4j Appender Piping and Rollover

2007-06-21 Thread ZalleCool


James Stauffer wrote:
> 
> What does your custom appender do?  Look at how AsnycAppender sends
> its output to another Appender.
> 
> DK:  Sure. I will take a look.  Thankx.
> 
> DailyRollingFileAppender doesn't allow much variation between the
> active and rolled filename.  Can you give an example of what you want?
> 
> DK:  The active file stays named as 'current' and the rolled over files
> get named as SomeService.log.20071206 
> 
> On 6/21/07, ZalleCool <[EMAIL PROTECTED]> wrote:
>>
>> Hi there,
>>
>> I would like to be able to pipe the output of a custom appender to
>> DailyRollingFileAppender.  How can I do that?  Secondly, I want the name
>> of
>> the active file to be different from that of the rolled over log files. 
>> Is
>> this possible with DailyRollingFileAppender?
>>
> 
> -- 
> James Staufferhttp://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Log4j-Appender-Piping-and-Rollover-tf3958043.html#a11236426
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Log4j Appender Piping and Rollover

2007-06-21 Thread James Stauffer

DailyRollingFileAppender won't do that but you might be able to make a
sub-class that would.

On 6/21/07, ZalleCool <[EMAIL PROTECTED]> wrote:

> DailyRollingFileAppender doesn't allow much variation between the
> active and rolled filename.  Can you give an example of what you want?
>
> DK:  The active file stays named as 'current' and the rolled over files
> get named as SomeService.log.20071206


--
James Staufferhttp://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Log4j Appender Piping and Rollover

2007-06-21 Thread ZalleCool



ZalleCool wrote:
> 
> 
> James Stauffer wrote:
>> 
>> What does your custom appender do?  Look at how AsnycAppender sends
>> its output to another Appender.
>> 
>> DK:  I keep running into API spec. for the AsyncAppender for this, could
>> you point me to an XML configuration for this.   Thanks.
>> 
>> DailyRollingFileAppender doesn't allow much variation between the
>> active and rolled filename.  Can you give an example of what you want?
>> 
>> DK:  The active file stays named as 'current' and the rolled over files
>> get named as SomeService.log.20071206 
>> 
>> On 6/21/07, ZalleCool <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi there,
>>>
>>> I would like to be able to pipe the output of a custom appender to
>>> DailyRollingFileAppender.  How can I do that?  Secondly, I want the name
>>> of
>>> the active file to be different from that of the rolled over log files. 
>>> Is
>>> this possible with DailyRollingFileAppender?
>>>
>> 
>> -- 
>> James Staufferhttp://www.geocities.com/stauffer_james/
>> Are you good? Take the test at http://www.livingwaters.com/good/
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Log4j-Appender-Piping-and-Rollover-tf3958043.html#a11236785
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Chainsaw config problem

2007-06-21 Thread akshay kumar
Hi t here,
  I got the solution about my 1st problem in which I have to put additivity= 
true.
  easy one ,i should have thought before asking..:(
  but how about 2nd one?
   
  regards,

akshay kumar <[EMAIL PROTECTED]> wrote:
  Hi Paul,
Got your point and thanks a ton for your suggestions.
I used the specific logger and it is working.
However, what this logger is doing, It is filtering logs from the chainsaw 
itself,
1) that means now my logs are not coming into chainsaw but it is directly going 
to the log file which I dont want.

Specifically I want that it should display logs to the chainsaw but while 
storing that into log file, it only stores the logs of my application not 
internal chainsaw logs.

2) In my application I have more then one logger, so to get logs from all, the 
general solution I can think is paste the same appender number of times and 
just change the logger name, this way it can work but is it possible that I can 
specify all my loggers at one place with just one appender? How can I do that?

thanks in advance.
Paul Smith 
wrote: 
On 21/06/2007, at 2:50 PM, akshay kumar wrote:

> Hi Paul,
> great!!..It is working fine now!
> However I got few more confusions!!..:(
> 1) As I am using pattern layout, I am not able to Drag and Drop 
> this file into my chainsaw
> And if I use XML layout instead of patternlayout the Timestamp 
> information comes in the log file is weird. I want the timestamp in 
> ISO8601 format only. Please tell me what can be the solution.

The solution is to have 2 appenders: 1 in XMLLayout format, the other 
in the human-readable format. If you name these log files 
appropriately and put them side by side each other, then you can view 
one with some other tool, and drag it's companion XML version into 
Chainsaw.

> 2) If I want to filter the chainsaw internal logs in my log file 
> how can I do that?

Only attach the XMLLayout and/or PatternLayout appenders to the root 
logger of your own package naming hierarchy. Right now you have 
attached them to the root logger. If your own logging events belong 
to, say, the 'com.mycompany.myproduct.LoggerA' Logger, then you could 
attach the appender to the "com.mycompany" logger. Something like:

class="org.apache.log4j.DailyRollingFileAppender">








value="[%d{ISO8601} %-5p][%20.20c][%t] %m%n"
/>



(do the same sort of thing for XML version, just use a different 
Layout)








...

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

Re: Log4j Appender Piping and Rollover

2007-06-21 Thread James Stauffer

Since you have a custom appender you can change its code to take the
same type of config that AsyncAppender does.

On 6/21/07, ZalleCool <[EMAIL PROTECTED]> wrote:




ZalleCool wrote:
>
>
> James Stauffer wrote:
>>
>> What does your custom appender do?  Look at how AsnycAppender sends
>> its output to another Appender.
>>
>> DK:  I keep running into API spec. for the AsyncAppender for this, could
>> you point me to an XML configuration for this.   Thanks.
>>
>> DailyRollingFileAppender doesn't allow much variation between the
>> active and rolled filename.  Can you give an example of what you want?
>>
>> DK:  The active file stays named as 'current' and the rolled over files
>> get named as SomeService.log.20071206
>>
>> On 6/21/07, ZalleCool <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi there,
>>>
>>> I would like to be able to pipe the output of a custom appender to
>>> DailyRollingFileAppender.  How can I do that?  Secondly, I want the name
>>> of
>>> the active file to be different from that of the rolled over log files.
>>> Is
>>> this possible with DailyRollingFileAppender?
>>>
>>
>> --
>> James Staufferhttp://www.geocities.com/stauffer_james/
>> Are you good? Take the test at http://www.livingwaters.com/good/
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>

--
View this message in context: 
http://www.nabble.com/Log4j-Appender-Piping-and-Rollover-tf3958043.html#a11236785
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
James Staufferhttp://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]