Class MarkdownLogEvent

java.lang.Object
org.jpos.util.LogEvent
org.jpos.util.MarkdownLogEvent

public class MarkdownLogEvent extends LogEvent
LogEvent that captures a precomputed Markdown rendering and replays it verbatim on subsequent dump/toString calls.
  • Constructor Details

    • MarkdownLogEvent

      public MarkdownLogEvent(String frozen)
      Constructs a MarkdownLogEvent from a precomputed Markdown string.
      Parameters:
      frozen - the Markdown text to render
    • MarkdownLogEvent

      Constructs a MarkdownLogEvent by capturing evt's rendered form.
      Parameters:
      evt - source event whose rendered text is captured
  • Method Details

    • dump

      public void dump(PrintStream ps, String indent)
      Description copied from class: LogEvent
      Dumps the full log event to the given PrintStream.
      Overrides:
      dump in class LogEvent
      Parameters:
      ps - the PrintStream to dump to
      indent - the outer indentation string
    • toString

      public String toString()
      Description copied from class: LogEvent
      Renders this event to a string with no leading indent.
      Overrides:
      toString in class LogEvent
      Returns:
      string rendering of this event