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]
> 

Reply via email to