Re: Ant, log4j: Defining log file path with ant properties

2008-04-30 Thread Jacob Kjome
Sure, are you wanting logs for unit tests or something? Then just define a system property to set inside the junit task Jake Friedbert Widmann wrote: > Is it possible, to overwrite the path of the logfile with properties set > within > the project build file. > > Example: I want to

Re: Log Multi-Line Messages

2008-04-30 Thread Curt Arnold
On Apr 30, 2008, at 10:58 AM, Britton, David wrote: Robert Pepersack wrote: Note that the second line isn't prefixed with the text created by my subclass of PatternLayout. How can I get all the output to be prefixed with the layout that I specify? For example: 2008-04-30 08:59:01 [MyThread]

RE: Log Multi-Line Messages

2008-04-30 Thread Britton, David
Robert Pepersack wrote: > Note that the second line isn't prefixed with the text > created by my subclass of PatternLayout. > > How can I get all the output to be prefixed with the layout > that I specify? For example: > > 2008-04-30 08:59:01 [MyThread] DEBUG MyClass.myMethod(): 220 > Connected to

RE: Simple log4j setup 1) to System.out.println (or eclipse console) or 2) file and 3) enableable at runtime + without need for log4j.xml ?

2008-04-30 Thread Rob Davis-5
Michael - thank you very much - I will try out your suggestion and report back. Your solution to my request to configure without log4j.xml is definitely an option I want to use. Also, just for info, for anyone else out there just starting out with log4j, I've done some more digging and found som

Log Multi-Line Messages

2008-04-30 Thread Robert Pepersack
I'm logging the a message from a server that may span several lines. For example: 220 Connected to server. 220 Connection will close if idle for more than 5 minutes. When log4j prints this to my log file, the output looks like this: 2008-04-30 08:59:01 [MyThread] DEBUG MyClass.myMethod(): 220

RE: Simple log4j setup 1) to System.out.println (or eclipse console) or 2) file and 3) enableable at runtime + without need for log4j.xml ?

2008-04-30 Thread Michael Erskine
Rob Davis-5 [mailto:[EMAIL PROTECTED] wrote: > Hi, I'm looking at setting up a simple log4j setup to: > 1) output logs to System.out.println (or the Eclipse console) when > developing software > 2) output to file(s) when the software is used in production > 3) enableable/disableable at runtime -

Ant, log4j: Defining log file path with ant properties

2008-04-30 Thread Friedbert Widmann
Is it possible, to overwrite the path of the logfile with properties set within the project build file. Example: I want to define a target like the following: reopen log4j logfiles It defines a project specific directory for the