[
https://issues.apache.org/jira/browse/LOG4J2-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705262#comment-13705262
]
Tom Smith commented on LOG4J2-303:
----------------------------------
Pinning together some snippets, this is what I want to do:
final TextAreaWriter taw = new TextAreaWriter(ta); // taw extends
java.io.Writer and knows how to display text in JavaFX output windows.
final WriterAppender wa =
new WriterAppender(new PatternLayout(simplePattern), taw);
final org.apache.log4j.Logger ddlog =
org.apache.log4j.Logger.getLogger("com.dd");
ddlog.addAppender(wa);
It seems that this is not possible in Log4j2.
You can write to a file or stdout but not to a Writer. Or not without some
serious conniptions I think.
Thanks,
Tom
> No WriterAppender functionality in Log4j2
> -----------------------------------------
>
> Key: LOG4J2-303
> URL: https://issues.apache.org/jira/browse/LOG4J2-303
> Project: Log4j 2
> Issue Type: Bug
> Components: log4j 1.2 emulation
> Affects Versions: 2.0-beta7
> Reporter: Tom Smith
>
> I have an app that uses a log4J 1.2 style WriterAppender to write to a JavaFX
> window that so it can display the output in various ways (console, table
> etc). I can't get the same functionality with Log4j2-- Is this a deliberate
> oversight because of the xml configuration system?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]