Log4j 2
  1. Log4j 2
  2. LOG4J2-697

Self written Appender stopped working

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-rc2
    • Fix Version/s: 2.0-rc2
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Eclipse 4.3 on Windows 7 Professional 64 bit, some 1.6_0_X JDK with x > 43.

      Description

      We had a self written appender which stopped working when switching from rc-1 to rc-2.

      I tried to enable Annoation Processing in Eclipse as I assume that this is due to changed stuff around the Log4j2Plugins.dat. However I get no hint that the annotations are actually processed. Windows finds no new file on system (but even fails to find the existing Log4j2Plugins.dat). Furthermore setting the status in the configuration to "trace" I got the impression that only the Log4j2Plugins.dat from the log4j2 jar is loaded.

      I'm not sure whether this is really a critical issue for more users, for us it is a blocker. Taking the problems into account we had with Log4j2 so far (memory leaks, API breaks, ...) we are wondering whether it is worth to completely write the logging by ourselves and get rid of log4j2 or switch back to something like SLF4j.

      1. log4j2.xml
        0.5 kB
        Sebastian Oerding
      2. log4jStartUpLog.txt
        151 kB
        Sebastian Oerding
      3. TranslogAppender.java
        0.4 kB
        Sebastian Oerding

        Activity

        Hide
        Sebastian Oerding added a comment -

        Here the logs from log4j startup, our self-written appender (simplified version only containing code regarding log4j2) and the snippet from the configuration.

        Show
        Sebastian Oerding added a comment - Here the logs from log4j startup, our self-written appender (simplified version only containing code regarding log4j2) and the snippet from the configuration.
        Hide
        Sebastian Oerding added a comment -

        Activated annotation processing on wrong project.

        Sorry.

        Show
        Sebastian Oerding added a comment - Activated annotation processing on wrong project. Sorry.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebastian Oerding
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development