Reply – Re: log4cxx SocketAppender
Your Name
Subject
Message
or Cancel
In Reply To
Re: log4cxx SocketAppender
— by Marinko Marinko
Here the configuration of the log4j2 which supports the XMLLayout

Configuration:
  Appenders:
    Console:
      name: Console_Appender
      target: SYSTEM_OUT
      PatternLayout:
        Pattern: "%d %-5p %C{3} (%F:%L) - %m%n"
    Socket:
      name: Socket_Appender
      host: 127.0.0.1
      port: 4447
      protocol: TCP
      XMLLayout:
        complete: true
  Loggers:
    Root:
      level: debug
      AppenderRef:
      - ref: Socket_Appender
      - ref: Console_Appender