Class AuditLogEventJsonLogRenderer
java.lang.Object
org.jpos.log.render.json.AuditLogEventJsonLogRenderer
- All Implemented Interfaces:
LogRenderer<AuditLogEvent>
public final class AuditLogEventJsonLogRenderer
extends Object
implements LogRenderer<AuditLogEvent>
JSON
LogRenderer for AuditLogEvent instances; serialises audit events using Jackson.-
Nested Class Summary
Nested classes/interfaces inherited from interface LogRenderer
LogRenderer.TypeModifier and TypeInterfaceDescriptionstatic enumSupported log output format types. -
Constructor Summary
ConstructorsConstructorDescriptionCreates the renderer and configures the Jackson mapper for ISO-8601 date output. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> clazz()Returns the class this renderer handles.voidrender(AuditLogEvent evt, PrintStream ps, String indent) Renders the given object to the print stream with the specified indentation.type()Returns the log event type this renderer handles.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 Stringrender(AuditLogEvent obj) Renders the given object to a string with no indentation.default voidrender(AuditLogEvent obj, PrintStream ps) Renders the given object to the print stream with no indentation.default Stringrender(AuditLogEvent obj, String indent) Renders the given object to a string with the specified indentation.
-
Constructor Details
-
AuditLogEventJsonLogRenderer
public AuditLogEventJsonLogRenderer()Creates the renderer and configures the Jackson mapper for ISO-8601 date output.
-
-
Method Details
-
render
Description copied from interface:LogRendererRenders the given object to the print stream with the specified indentation.- Specified by:
renderin interfaceLogRenderer<AuditLogEvent>- 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<AuditLogEvent>- Returns:
- the handled class
-
type
Description copied from interface:LogRendererReturns the log event type this renderer handles.- Specified by:
typein interfaceLogRenderer<AuditLogEvent>- Returns:
- the handled event type
-