Class LogMessage

java.lang.Object
com.mendix.logging.LogMessage

public class LogMessage extends Object
LogMessage objects hold all information of Log Message, and get passed around through the logging system.
  • Field Details

    • node

      public final ILogNode node
    • level

      public final LogLevel level
    • message

      public final Object message
    • cause

      public final Throwable cause
    • timestamp

      public final long timestamp
    • prefix

      public String prefix
  • Constructor Details

    • LogMessage

      public LogMessage(ILogNode node, LogLevel level, Object message, Throwable cause)
      Creates a new log message with the specified information.
      Parameters:
      node - the log node on which the message was logged
      level - the log level at which the message was logged
      message - the log message
      cause - the log exception to log (can be null)
    • LogMessage

      public LogMessage(ILogNode node, LogLevel level, Object message, Throwable cause, long timestamp)
      Creates a new log message with the specified information.
      Parameters:
      node - the log node on which the message was logged
      level - the log level at which the message was logged
      message - the log message
      cause - the log exception to log (can be null)
      timestamp - the log exception time