Interface LogRenderer<T>
- Type Parameters:
T- the concrete type rendered by this strategy
- All Known Implementing Classes:
AuditLogEventJsonLogRenderer, ByteArrayMarkdownLogRenderer, ContextMarkdownRenderer, ElementMarkdownLogRenderer, LicenseTxtLogRenderer, LogEventJsonLogRenderer, LogEventMarkdownRenderer, LogEventXmlLogRenderer, LoggeableJsonLogRenderer, LoggeableMarkdownLogRenderer, LoggeableXmlLogRenderer, ObjectMarkdownLogRenderer, ObjectTxtLogRenderer, ProfilerMarkdownRenderer, StringMarkdownLogRenderer, SysInfoMarkdownRenderer, SysInfoTxtLogRenderer, ThrowableMarkdownLogRenderer, TransactionManagerTraceArrayMarkdownLogRenderer, TransactionManagerTraceMarkdownLogRenderer
public interface LogRenderer<T>
Strategy that renders an object of type
T into a target log format
(XML, JSON, plain text, or Markdown).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumSupported log output format types. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> clazz()Returns the class this renderer handles.default StringPrependsindentto each line ofs.default StringRenders the given object to a string with no indentation.default voidrender(T obj, PrintStream ps) Renders the given object to the print stream with no indentation.voidrender(T obj, PrintStream ps, String indent) Renders the given object to the print stream with the specified indentation.default StringRenders the given object to a string with the specified indentation.type()Returns the log event type this renderer handles.
-
Method Details
-
render
Renders the given object to the print stream with the specified indentation.- Parameters:
obj- the object to renderps- the output streamindent- indentation prefix
-
clazz
-
type
Returns the log event type this renderer handles.- Returns:
- the handled event type
-
render
Renders the given object to the print stream with no indentation.- Parameters:
obj- the object to renderps- the output stream
-
render
-
render
-
indent
-