Re: Cross-platform File appender paths?

2005-10-28 Thread Jacob Kjome
At 08:32 PM 10/28/2005 -0700, you wrote: >Is this possible? I'd like my log4j.properties to be portable between >Linux and Windows without having to change which one got deployed in ant >or something like that. But I thought I'd ask first. The idea being if >this line... > >log4j.appender.File.fil

Cross-platform File appender paths?

2005-10-28 Thread Preston CRAWFORD
Is this possible? I'd like my log4j.properties to be portable between Linux and Windows without having to change which one got deployed in ant or something like that. But I thought I'd ask first. The idea being if this line... log4j.appender.File.file=c:/logs/myproject.log could be turned into so

Re: Chainsaw Config help request

2005-10-28 Thread Paul Smith
Sounds like having an MRU list might be worth adding to the Chainsaw file menu. On 29/10/2005, at 2:19 AM, Scott Deboy wrote: You're right, Chainsaw can load events through the menu, but it doesn't currently have a way to 'remember' to load these files on startup. If you feel like hacking

RE: Chainsaw Config help request

2005-10-28 Thread Scott Deboy
You're right, Chainsaw can load events through the menu, but it doesn't currently have a way to 'remember' to load these files on startup. If you feel like hacking the Chainsaw source in order to add a way through a menu to remember to load a file on startup, go for it. If you don't care about me

RE: Chainsaw Config help request

2005-10-28 Thread Michael Pitoniak
Scott, Last question i promise :) The XML file I need to load is one created by the log4j XML appender. Since ChainSaw can load that file via the file menu it would imply that chainsaw already knew how to process exents formatted in the XML appender format. Is this correct? I am sorry for

RE: Chainsaw Config help request

2005-10-28 Thread Michael Pitoniak
Scott, again...thanks. mp "Scott Deboy" <[EMAIL PROTECTED]> 10/28/2005 11:58 AM Please respond to "Log4J Users List" To "Log4J Users List" cc Subject RE: Chainsaw Config help request In order for Chainsaw to automatically load any events on startup, a receiver has to do the work o

RE: Chainsaw Config help request

2005-10-28 Thread Scott Deboy
In order for Chainsaw to automatically load any events on startup, a receiver has to do the work of getting the events to Chainsaw. To process an xml-formatted logfile on startup, you need a receiver that knows how to process the XMLLayout-formatted events in the log file. The receiver I descri

RE: Chainsaw Config help request

2005-10-28 Thread Michael Pitoniak
Scott, So many thanks. All i really need is a way for chainsaw to load a pre existing xml file on startup, not a dynamic listener. Is there an easy way t do just that? thanks again. mike "Scott Deboy" <[EMAIL PROTECTED]> 10/28/2005 11:20 AM Please respond to "Log4J Users List" To "Log4

RE: Preventing File Append using log4j

2005-10-28 Thread Philip Denno
Is the data record you are writing bigger than 0.5 KB? If so then unfortunately I don't have any other ideas for file based logging. Have you given any thought to perhaps storing the record in another form such as a database record? Or even provide the data in real - time through a UI screen in

RE: Chainsaw Config help request

2005-10-28 Thread Scott Deboy
I don't have the time to write the receiver myself, but it's really easy to do using the log4j 1.3 org.apache.log4j.xml.XMLDecoder. You can still use your new receiver with the existing WebStart-available version of Chainsaw at http://logging.apache.org/log4j/docs/chainsaw.html. Here is what you

Re: appender is new

2005-10-28 Thread Jacob Kjome
Quoting Charith Fernando <[EMAIL PROTECTED]>: > Hi all, > > > > When I create a FileAppender is there a way to check whether the file was > created as a new file or the appender is using an existing file/// > You mean when you create the appender programatically? If you are doing that, then just

Chainsaw Config help request

2005-10-28 Thread Michael Pitoniak
team, can someone tell me how to configure chainsaw V2 to automatically load an XML file on startup? many thanks, mike

log4j Can't rename file

2005-10-28 Thread column column
Hello, I have logger: static Category lg = Category.getInstance(Mycls.class.getName()); it gets proprtys: log4j.rootLogger=DEBUG, console, logfile log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.Threshold=DEBUG log4j.appender.console.layout=org.apache.log4j.Pattern

RE: Preventing File Append using log4j

2005-10-28 Thread Gerard Menezes
Thanks Philip & James for your suggestions. Unfortunately , it still didnt work. log4j just refuses to wipe out all traces of it's logging (-: Below is the appender config I used. I have used the RollingFileAppender this time, and configured it for minutely roll over, max size = 0.5 KB and M