You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Sean McCauliff <se...@gmail.com> on 2017/09/13 22:14:26 UTC
Logging previous messages based on current messages?
What I would like to do is to have some kind of filter that will
filter log messages less than ERROR, but when an ERROR happens I would
like the previous N messages emitted to the log. Is there a way to do
that? If not then what would be the steps to implement that
functionality?
Thanks,
Sean
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Logging previous messages based on current messages?
Posted by Sean McCauliff <se...@gmail.com>.
Yes that JIRA ticket describes exactly what I want and why I want it.
Sean
On Wed, Sep 13, 2017 at 3:43 PM, Ralph Goers <ra...@dslextreme.com> wrote:
> Please see https://issues.apache.org/jira/browse/LOG4J2-1137 <https://issues.apache.org/jira/browse/LOG4J2-1137>. If that is along the lines of what you are looking for then feel free to comment there or add yourself as a watcher. I know I will get to this sooner or later unless someone beats me to it.
>
> Ralph
>
>> On Sep 13, 2017, at 3:14 PM, Sean McCauliff <se...@gmail.com> wrote:
>>
>> What I would like to do is to have some kind of filter that will
>> filter log messages less than ERROR, but when an ERROR happens I would
>> like the previous N messages emitted to the log. Is there a way to do
>> that? If not then what would be the steps to implement that
>> functionality?
>>
>> Thanks,
>> Sean
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Logging previous messages based on current messages?
Posted by Ralph Goers <ra...@dslextreme.com>.
Sure, why not?
Ralph
> On Sep 29, 2017, at 6:19 PM, Sean McCauliff <se...@gmail.com> wrote:
>
> I was looking at RoutingAppender. Is this a good class to look at if I
> wanted to implement a buffering appeder which calls other appenders?
>
> On Wed, Sep 13, 2017 at 3:43 PM, Ralph Goers <ralph.goers@dslextreme.com <ma...@dslextreme.com>> wrote:
>> Please see https://issues.apache.org/jira/browse/LOG4J2-1137 <https://issues.apache.org/jira/browse/LOG4J2-1137> <https://issues.apache.org/jira/browse/LOG4J2-1137 <https://issues.apache.org/jira/browse/LOG4J2-1137>>. If that is along the lines of what you are looking for then feel free to comment there or add yourself as a watcher. I know I will get to this sooner or later unless someone beats me to it.
>>
>> Ralph
>>
>>> On Sep 13, 2017, at 3:14 PM, Sean McCauliff <se...@gmail.com> wrote:
>>>
>>> What I would like to do is to have some kind of filter that will
>>> filter log messages less than ERROR, but when an ERROR happens I would
>>> like the previous N messages emitted to the log. Is there a way to do
>>> that? If not then what would be the steps to implement that
>>> functionality?
>>>
>>> Thanks,
>>> Sean
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org <ma...@logging.apache.org>
> For additional commands, e-mail: log4j-user-help@logging.apache.org <ma...@logging.apache.org>
Re: Logging previous messages based on current messages?
Posted by Sean McCauliff <se...@gmail.com>.
I was looking at RoutingAppender. Is this a good class to look at if I
wanted to implement a buffering appeder which calls other appenders?
On Wed, Sep 13, 2017 at 3:43 PM, Ralph Goers <ra...@dslextreme.com> wrote:
> Please see https://issues.apache.org/jira/browse/LOG4J2-1137 <https://issues.apache.org/jira/browse/LOG4J2-1137>. If that is along the lines of what you are looking for then feel free to comment there or add yourself as a watcher. I know I will get to this sooner or later unless someone beats me to it.
>
> Ralph
>
>> On Sep 13, 2017, at 3:14 PM, Sean McCauliff <se...@gmail.com> wrote:
>>
>> What I would like to do is to have some kind of filter that will
>> filter log messages less than ERROR, but when an ERROR happens I would
>> like the previous N messages emitted to the log. Is there a way to do
>> that? If not then what would be the steps to implement that
>> functionality?
>>
>> Thanks,
>> Sean
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Logging previous messages based on current messages?
Posted by Ralph Goers <ra...@dslextreme.com>.
Please see https://issues.apache.org/jira/browse/LOG4J2-1137 <https://issues.apache.org/jira/browse/LOG4J2-1137>. If that is along the lines of what you are looking for then feel free to comment there or add yourself as a watcher. I know I will get to this sooner or later unless someone beats me to it.
Ralph
> On Sep 13, 2017, at 3:14 PM, Sean McCauliff <se...@gmail.com> wrote:
>
> What I would like to do is to have some kind of filter that will
> filter log messages less than ERROR, but when an ERROR happens I would
> like the previous N messages emitted to the log. Is there a way to do
> that? If not then what would be the steps to implement that
> functionality?
>
> Thanks,
> Sean
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>