[just for lulz] log4j2 "advanced" log filtering rules

Discussion in 'Plugin Development' started by RawCode, Apr 7, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    RawCode

    I already know *partial* answer to this question, i created thread for users who may want to improve source digging skills.

    How can i output message to console without that message go to log?
    How can i output message to standart log4j2 logfile without that message to appear in console?

    I will provide answers later.
    I will provide spolers on request.

    my solution include *some* black magic and i probably used log4j2 classes incorrectly (or terrably incorrectly).
     
  2. Offline

    xTrollxDudex

    CHALLENGE ACCEPTED.

    Show Spoiler
    [​IMG]


    #2 Try getting default appender from Logger and call append to a new LogEvent for direct file write
     
Thread Status:
Not open for further replies.

Share This Page