Categories


Authors:
mcelano
logos

Log4JPlugin

Products: IntelliJ IDEA

Vendor: DIRECTV

Email:

Website: http://plugins.intellij.net/plugin/?idea&id=13

Log4J Plugin Monitoring (LF5_SOCKET)

Features:

  • Table view of log messages;
  • Filtering by Level, Category, NDC and Message;
  • Quick link to source code from detail panel;

Configuration:

  • Download Log4JPlugin plugin
  • Configure log4j.xml socket appender
  • <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">

    <appender name="LF5_SOCKET" class="org.apache.log4j.net.SocketAppender">
      <param name="RemoteHost" value="localhost"/>
      <param name="Port" value="4454"/>
      <param name="LocationInfo" value="true"/>
      <param name="ReconnectionDelay" value="5000"/>
      <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="
          [slf5s.start]
          %d{DATE}[slf5s.DATE]%n
          %p[slf5s.PRIORITY]%n
          ${server.name}[slf5s.NDC]%n
          %c[slf5s.CATEGORY]%n
          %l[slf5s.LOCATION]%n
          %m[slf5s.MESSAGE]%n%n"
        />
      </layout>
    </appender>

    <root>
      <priority value="debug"/>
      <appender-ref ref="LF5_SOCKET"/>
    </root>

    </log4j:configuration>

  • Configure log4j2.xml socket appender
  • <Configuration status="DEBUG">
     
     <Appenders>
      <Console name="STDOUT" target="SYSTEM_OUT"/>
      <Socket name="LF5_SOCKET" host="localhost" port="4454" protocol="TCP" reconnectionDelay="5000"/>
     </Appenders>
     
     <Loggers>
      <Root level="trace">
       <AppenderRef ref="STDOUT" level="DEBUG"/>
       <AppenderRef ref="LF5_SOCKET" level="DEBUG"/>
      </Root>
     </Loggers>
     
    </Configuration>

Downloads: 34333
Rating:
Participated in rating: 5
Version Compatible builds Date
1.04 85.9852 28.10.2014 Download
0.9.4 40.3311 27.04.2005 Download
0.9.3 30.06.2004 Download
4 updates are hidden show all updates
Screenshot #14786

Recent change notes

Corrected issues in handling exception and Thread Context (MDC) for log4j 2.x

General usage instructions

Log4J Plugin Monitoring (LF5_SOCKET) Features:

  • Table view of log messages;

  • Filtering by Level, Category, NDC and Message;

  • Quick link to source code from detail panel;

Configuration:

  • Download Log4JPlugin plugin

  • Configure log4j SocketAppender appender:

  • Add log4j SocketAppender into root:

Refer to plugin for sample log4j.xml amd log4j2.xml