net.logstash.logback
Class EventFormatter

java.lang.Object
  extended by net.logstash.logback.EventFormatter

public class EventFormatter
extends Object


Field Summary
static org.apache.commons.lang.time.FastDateFormat ISO8601_DATETIME_TIME_ZONE_FORMAT_WITH_MILLIS
           
static TimeZone UTC
           
 
Constructor Summary
EventFormatter(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent)
           
 
Method Summary
static String dateFormat(long timestamp)
           
 String getClassName()
           
 String getExceptionClass()
           
 String getExceptionMessage()
           
 String getFileName()
           
 String getLevel()
           
 String getLineNumber()
           
 String getLoggerName()
           
 Map<String,String> getMDC()
           
 String getMessage()
           
 String getMethodName()
           
 String getSourceHost()
           
 String getStackTrace()
           
 String getThreadName()
           
 String getTimeStamp()
           
 boolean hasExceptionInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTC

public static final TimeZone UTC

ISO8601_DATETIME_TIME_ZONE_FORMAT_WITH_MILLIS

public static final org.apache.commons.lang.time.FastDateFormat ISO8601_DATETIME_TIME_ZONE_FORMAT_WITH_MILLIS
Constructor Detail

EventFormatter

public EventFormatter(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent)
Method Detail

dateFormat

public static String dateFormat(long timestamp)

getMessage

public String getMessage()

getTimeStamp

public String getTimeStamp()

getSourceHost

public String getSourceHost()

getLoggerName

public String getLoggerName()

getThreadName

public String getThreadName()

getLevel

public String getLevel()

getMDC

public Map<String,String> getMDC()

hasExceptionInfo

public boolean hasExceptionInfo()

getStackTrace

public String getStackTrace()

getExceptionClass

public String getExceptionClass()

getExceptionMessage

public String getExceptionMessage()

getFileName

public String getFileName()

getLineNumber

public String getLineNumber()

getClassName

public String getClassName()

getMethodName

public String getMethodName()


Copyright © 2015. All Rights Reserved.