Re: Suppressing stacktrace output

2013-03-26 Thread henrik.ebbesen
The EnhancedPatternLayout class already has options to suppress stacktrace. See http://logging.apache.org/log4j/companions/extras/apidocs/index.html?org/apache/log4j/rolling/RollingFileAppender.html

Re: Simple (?) question about logging behavior (additive issue?)

2013-03-26 Thread Peter DePasquale
I'm still stumped on this issue and would welcome any thoughts or feedback. In fact, I've tried to replicate my steps in my real application and obtained similar results. Even reducing the number of loggers to just the base package in my 'real' app results in empty files. On Mon, Mar 25, 2013 at

Problems with FileoverAppender

2013-03-26 Thread Daniele Menotti
Hi all, I'm writing an application where I want to log to a Syslog server. I'm doing it using a FailoverAppender, so when the Syslog server is down I can log to a local file. I'm using Log4j 2.0beta4. Here is my log4j2.xml configuration file: configuration appenders RollingFile

Re: Problems with FileoverAppender

2013-03-26 Thread Ralph Goers
I've been doing some work on the SocketAppender, which is the base for the SyslogAppender. The SocketAppender is not flushing the OutputStream on every send. From what I can tell this is causing the data to be buffered and the exception only gets thrown when the buffer gets full and actual I/O