Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-697

Self written Appender stopped working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0-rc2
    • 2.0-rc2
    • Core
    • None
    • 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.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            zyrano Sebastian Oerding
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: