Thanks Matt. This is working after enabling annotation processing and
adding the log4j2 core jar file to the so called factory path in Eclipse. I
think this should go into the official documentation.

On 20 July 2014 22:45, Matt Sicker <[email protected]> wrote:

> You'll have to enable annotation processing in Eclipse. This looks somewhat
> dated, but it might still be relevant:
>
> http://www.eclipse.org/jdt/apt/introToAPT.php
>
>
> On 20 July 2014 14:08, Maciej Skrzetuski <[email protected]> wrote:
>
> > I am hitting the *play* button (run actually) in Eclipse in my Java
> > project. I am not using Maven or Ant for building the project.
> >
> > On 20 July 2014 20:58, Matt Sicker <[email protected]> wrote:
> >
> > > How are you building this?
> > >
> > >
> > > On 20 July 2014 09:29, Maciej Skrzetuski <[email protected]>
> wrote:
> > >
> > > > Hi Ralph,
> > > >
> > > > yes, this is the 2.0 release version. Not the release *candidate* 2.
> > > >
> > > > Kind regards
> > > > Maciej
> > > >
> > > > On 20 July 2014 16:12, Ralph Goers <[email protected]> wrote:
> > > >
> > > > > This is with version 2.0?
> > > > >
> > > > > Sent from my iPad
> > > > >
> > > > > > On Jul 20, 2014, at 3:45 AM, Maciej Skrzetuski <
> > > [email protected]
> > > > >
> > > > > wrote:
> > > > > >
> > > > > > Hi Matt,
> > > > > >
> > > > > > thanks for replying and your suggestions. I did what you said but
> > the
> > > > > > CLASS_NOT_FOUND error still occurs.
> > > > > > The debug log is at http://pastebin.com/595Q0bXY. The
> > > TextAreaAppender
> > > > > now
> > > > > > looks like this http://pastebin.com/SyzDNhGg and the log4j2.xml
> > like
> > > > > this
> > > > > > http://pastebin.com/zF7jPVrL.
> > > > > >
> > > > > > Kind regards
> > > > > > Maciej
> > > > > >
> > > > > >> On 20 July 2014 00:22, Matt Sicker <[email protected]> wrote:
> > > > > >>
> > > > > >> 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 <
> [email protected]
> > >
> > > > > 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 <[email protected]>
> > > > > >>
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [email protected]
> > > > > For additional commands, e-mail:
> [email protected]
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Matt Sicker <[email protected]>
> > >
> >
>
>
>
> --
> Matt Sicker <[email protected]>
>

Reply via email to