Class Log

  • All Implemented Interfaces:
    Recyclable

    public class Log
    extends java.lang.Object
    implements Recyclable
    Additional information added when logging the error.
    • Constructor Summary

      Constructors 
      Constructor Description
      Log()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLevel()
      The severity of the record.
      java.lang.String getLoggerName()
      The name of the logger instance used.
      java.lang.String getMessage()
      The additionally logged error message.
      java.lang.String getParamMessage()
      A parametrized message.
      void resetState()
      resets pooled object state so it can be reused
      Log withLevel​(java.lang.String level)
      The severity of the record.
      Log withLoggerName​(java.lang.String loggerName)
      The name of the logger instance used.
      Log withMessage​(java.lang.String message)
      The additionally logged error message.
      Log withParamMessage​(java.lang.String paramMessage)
      A parametrized message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Log

        public Log()
    • Method Detail

      • getLevel

        public java.lang.String getLevel()
        The severity of the record.
      • withLevel

        public Log withLevel​(java.lang.String level)
        The severity of the record.
      • getLoggerName

        public java.lang.String getLoggerName()
        The name of the logger instance used.
      • withLoggerName

        public Log withLoggerName​(java.lang.String loggerName)
        The name of the logger instance used.
      • getMessage

        @Nullable
        public java.lang.String getMessage()
        The additionally logged error message. (Required)
      • withMessage

        public Log withMessage​(java.lang.String message)
        The additionally logged error message. (Required)
      • getParamMessage

        @Nullable
        public java.lang.String getParamMessage()
        A parametrized message. E.g. 'Could not connect to %s'. The property message is still required, and should be equal to the param_message, but with placeholders replaced. In some situations the param_message is used to group errors together. The string is not interpreted, so feel free to use whichever placeholders makes sense in the client languange.
      • withParamMessage

        public Log withParamMessage​(java.lang.String paramMessage)
        A parametrized message. E.g. 'Could not connect to %s'. The property message is still required, and should be equal to the param_message, but with placeholders replaced. In some situations the param_message is used to group errors together. The string is not interpreted, so feel free to use whichever placeholders makes sense in the client languange.
      • resetState

        public void resetState()
        Description copied from interface: Recyclable
        resets pooled object state so it can be reused
        Specified by:
        resetState in interface Recyclable