Class FrozenLogEvent

java.lang.Object
org.jpos.util.LogEvent
org.jpos.util.FrozenLogEvent
All Implemented Interfaces:
Serializable

public class FrozenLogEvent extends LogEvent implements Serializable
An immutable, serializable snapshot of a LogEvent.
See Also:
  • Constructor Details

    • FrozenLogEvent

      public FrozenLogEvent(String frozen)
      Creates a FrozenLogEvent from a pre-rendered string.
      Parameters:
      frozen - the pre-rendered log event string
    • FrozenLogEvent

      public FrozenLogEvent(LogEvent evt)
      Creates a FrozenLogEvent by capturing the current dump of the given LogEvent.
      Parameters:
      evt - the LogEvent to freeze
  • 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