me.moocar.logbackgelf
Class GelfConverter
java.lang.Object
me.moocar.logbackgelf.GelfConverter
public class GelfConverter
- extends Object
Responsible for formatting a log event into a GELF message
|
Constructor Summary |
GelfConverter(String facility,
boolean useLoggerName,
boolean useThreadName,
boolean useMarker,
Map<String,String> additionalFields,
Map<String,String> staticAdditionalFields,
int shortMessageLength,
String hostname,
String messagePattern,
String shortMessagePattern,
boolean includeFullMDC)
|
|
Method Summary |
String |
toGelf(ch.qos.logback.classic.spi.ILoggingEvent logEvent)
Converts a log event into GELF JSON. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GelfConverter
public GelfConverter(String facility,
boolean useLoggerName,
boolean useThreadName,
boolean useMarker,
Map<String,String> additionalFields,
Map<String,String> staticAdditionalFields,
int shortMessageLength,
String hostname,
String messagePattern,
String shortMessagePattern,
boolean includeFullMDC)
toGelf
public String toGelf(ch.qos.logback.classic.spi.ILoggingEvent logEvent)
- Converts a log event into GELF JSON.
- Parameters:
logEvent - The log event we're converting
- Returns:
- The log event converted into GELF JSON
Copyright © 2011-2014. All Rights Reserved.