Class LogEventJsonLogRenderer
java.lang.Object
org.jpos.log.render.json.LogEventJsonLogRenderer
- All Implemented Interfaces:
LogRenderer<LogEvent>
JSON renderer for
LogEvent, serialising tag/realm/payload via Jackson.-
Nested Class Summary
Nested classes/interfaces inherited from interface LogRenderer
LogRenderer.TypeModifier and TypeInterfaceDescriptionstatic enumSupported log output format types. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LogRenderer
indent, render, render, renderModifier and TypeMethodDescriptiondefault StringPrependsindentto each line ofs.default StringRenders the given object to a string with no indentation.default voidrender(LogEvent obj, PrintStream ps) Renders the given object to the print stream with no indentation.default StringRenders the given object to a string with the specified indentation.
-
Constructor Details
-
LogEventJsonLogRenderer
public LogEventJsonLogRenderer()Default constructor.
-
-
Method Details
-
render
Description copied from interface:LogRendererRenders the given object to the print stream with the specified indentation.- Specified by:
renderin interfaceLogRenderer<LogEvent>- Parameters:
evt- the object to renderps- the output streamindent- indentation prefix
-
clazz
Description copied from interface:LogRendererReturns the class this renderer handles.- Specified by:
clazzin interfaceLogRenderer<LogEvent>- Returns:
- the handled class
-
type
Description copied from interface:LogRendererReturns the log event type this renderer handles.- Specified by:
typein interfaceLogRenderer<LogEvent>- Returns:
- the handled event type
-