Re: multiple JVMs writing to the same file

2007-07-31 Thread Josh Drummond
You could also run a central syslog-ng server, and have the various JVMs send to it via a SyslogAppender . syslog-ng is free and powerful, you can do regex filtering and dump to file however you like. It supports the more reliable TCP, however last time I checked log4j only supports UDP, so fa

Re: level based logging into seperate files

2007-07-31 Thread James Stauffer
Here are appenders for DEBUG, INFO, WARN, and ERROR: On 7/31/07, Sarvananda <[EMAIL PROTECTED]> wrote: > > > > James Stauffer wrote: > > > > I have

Re: level based logging into seperate files

2007-07-31 Thread Sarvananda
James Stauffer wrote: > > I have created one appender per level but each appender gets logs of > the given level and above. Do you want to see an example of that? > Yes pleae. Id be grateful for that. thanks -- View this message in context: http://www.nabble.com/level-based-logging-into-

RE: multiple JVMs writing to the same file

2007-07-31 Thread Zakaria, Faheem
Hi Thomas, There are two choices to your situation. 1. Save log output locally for each JVM and use a distributed log reader for log analysis. This has the benefits of centralized logging without the mandate. Of course, maintenance processes of identifying, indexing and collating logs across JV

Re: multiple JVMs writing to the same file

2007-07-31 Thread Thomas michelbach
Thanks for the answer, The socket appender is a good option, but i read this article http://www.jroller.com/oburn/date/200601 and was concerned about possible problems (deadlocks). the first problem would arise if thd JVM receiving the logs goes down or even goes into a deadlock. I need a way to

Re: level based logging into seperate files

2007-07-31 Thread James Stauffer
I have created one appender per level but each appender gets logs of the given level and above. Do you want to see an example of that? On 7/31/07, Sarvananda <[EMAIL PROTECTED]> wrote: > > Thank you so much for your reply James. > > > James Stauffer wrote: > > > > Are you using an un-modified log

Re: multiple JVMs writing to the same file

2007-07-31 Thread James Stauffer
You can have each JVM send the events to a single separate JVM with SocketAppenders. That single separate JVM would receive events from all of the other JVMs and write them to a file. On 7/31/07, Thomas michelbach <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using log4j in an environment with mult

multiple JVMs writing to the same file

2007-07-31 Thread Thomas michelbach
Hello, I'm using log4j in an environment with multiple jvms. I know that the best option for a central logging output, would be a database, but in this environment I don't have one. Now I use a different file for each jvm, but I need to consolidate them in one file. The best case would be to have