[ 
https://issues.apache.org/jira/browse/SLING-13188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077104#comment-18077104
 ] 

Robert Munteanu commented on SLING-13188:
-----------------------------------------

I've created such a component first outside the module - this is how it looks 
like: 
https://github.com/apache/sling-whiteboard/commit/2da7f58b8a149ba3ee18068d2d4bbb0f87aeacfa

It can be ported almost as-is to the commons.log bundle, excluding the usage of 
Logback APIs.

> Provide an optional in-memory store of recent log events
> --------------------------------------------------------
>
>                 Key: SLING-13188
>                 URL: https://issues.apache.org/jira/browse/SLING-13188
>             Project: Sling
>          Issue Type: New Feature
>          Components: Commons
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Major
>             Fix For: Commons Log 6.0.6, Commons Log 5.5.2
>
>
> It is sometimes useful to query recent log event, for instance in developer 
> tools. It is currently possible to do so by registering an Appender OSGi 
> service ( 
> https://sling.apache.org/documentation/development/logging.html#appenders-as-osgi-services-1
>  ) but that has two drawbacks:
> - it is a common concern that gets duplicated across multiple consumers
> - it binds the consumers to logback APIs
> The commons log bundle should provide an optional comoponent that exposes the 
> recent log entries without forcing the consumer to bind to logback APIs.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to