logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Eisele <fredrick.eis...@gmail.com>
Subject Providing access to log/appender in application
Date Thu, 15 Aug 2019 12:12:55 GMT
My current application has a "log panel" where certain messages are posted.
We are converting this application to use log4j2.
What is a good way to route an appender to an in memory list of messages in
the application?

* Construct an appender programmatically passing the java list to the
* Construct an appender based on either OutputStreamAppender or
MemoryMappedFileAppender, and access its manager programmatically

On a related note---
Is it possible to programmatically access an appender by name without first
going through a logger?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message