Hi Ralph, for me its not on the fail of appender but fail of my application I have to log to disk? FailOver will only switch to secondary appender if first fails, but failure for me is in application not appender.
Is my thinking wrong anywhere? -Sudharma On Fri, Oct 11, 2013 at 10:55 AM, Ralph Goers <[email protected]> wrote: > Did you make sure to specify ignoreExceptions="false" on the appender to > be failed over? > > Ralph > > On Oct 10, 2013, at 10:21 PM, Sudharma Puranik <[email protected]> > wrote: > > Failover Appender dint work for me.. I will send you the details soon... > hardly pressed with work. > > -Sudharma > > > On Thu, Oct 10, 2013 at 3:48 PM, Ralph Goers <[email protected]> wrote: > >> The FailoverAppender didn't work for you? If not, why? >> >> To get your plugin to be found you either need to add its package to the >> packages attribute of the configuration element or you need to use "plugin >> preloading", which is documented on the Plugins page on the web site, >> >> Ralph >> >> On Oct 10, 2013, at 1:43 AM, Sudharma Puranik <[email protected]> >> wrote: >> >> I created my custom Appender and Manager and added it into the plugins >> which work properly. But I have a problem like I have to always compile >> the core and deploy it back which is not a good idea.. Does the log4j2 >> provide any dropin solution for plugins? Or is it that , do you have any >> other way of doing it? >> >> kindly help >> >> -Sudharma >> >> >> On Thu, Oct 10, 2013 at 12:13 AM, Ralph Goers <[email protected] >> > wrote: >> >>> Try the FailoverAppender. See >>> http://logging.apache.org/log4j/2.x/manual/appenders.html#FailoverAppender >>> . >>> >>> Ralph >>> >>> On Oct 9, 2013, at 10:25 AM, Sudharma Puranik < >>> [email protected]> wrote: >>> >>> > Hello, >>> > >>> > I have a special case of logging, that is , whenever I get an Error I >>> would want to log to disk. Kind of a Dump log. The approach I have used so >>> far are, >>> > >>> > 1. extend RollingRandomAccessAppender and RandomAccessManager and >>> create my own write method which will only write to a IO Stream and when >>> error occurs I flush it using ByteBuffer. But the problem is I am not able >>> to get the hook of Exception handling. >>> > >>> > 2 Tried to write my own NIO streaming with different thread. But >>> handling rollover is not managable. >>> > >>> > Could you please suggest me a better approach for this? >>> > >>> > -Sudharma >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >
