logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: How do I log into a JavaFX text area?
Date Sat, 19 Jul 2014 22:22:12 GMT
First of all, you don't need to use the packages attribute in
Configuration. Secondly, you need to add the following two parameters to
your factory:

@PluginElement("Layout") Layout<? extends Serializable> layout
@PluginElement("Filter") final Filter filter

In your example, at the very least, you need to add the Layout one. Then
you want to pass that to your constructor, of course.

Also, set status="DEBUG" for more useful debug information when working on
custom plugins.

On 19 July 2014 17:03, Maciej Skrzetuski <m.skrzetuski@gmail.com> wrote:

> Hello there,
> I tried to write a custom appender but that does not work at all. The class
> that I implemented can be seen at http://pastebin.com/X2EUsYgP. The
> configuration file that I am using at http://pastebin.com/TsXJp7eU.
> I am getting the following exception.
> 2014-07-19 23:44:49,494 ERROR Error processing element Q: CLASS_NOT_FOUND
> 1. What am I doing wrong?
> 2. Could someone please hand out the code for writing into a JavaFX or
> Swing element (TextArea would be great) from Log4j2?
> Kind regards
> Maciej Skrzetuski

Matt Sicker <boards@gmail.com>

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