Class Message

    • Constructor Detail

      • Message

        protected Message()
        Matches any Message.
      • Message

        public Message​(String message)
        Parameters:
        message - the message
      • Message

        public Message​(Message message)
        Parameters:
        message - the message to copy
      • Message

        public Message​(String message,
                       Object[] argumentArray,
                       Throwable throwable)
        Parameters:
        message - the message
        argumentArray - the event arguments to insert in the message
        throwable - the throwable associated to the event
      • Message

        public Message​(String translationKey,
                       String message,
                       Object... arguments)
        Parameters:
        translationKey - the key used to find the translation
        message - the log message
        arguments - the arguments to insert in the message
      • Message

        public Message​(org.slf4j.Marker marker,
                       String message,
                       Object[] argumentArray,
                       Throwable throwable)
        Parameters:
        marker - the log marker
        message - the log message
        argumentArray - the event arguments to insert in the message
        throwable - the throwable associated to the event
    • Method Detail

      • getMarker

        public org.slf4j.Marker getMarker()
        Returns:
        the log marker
      • getMessage

        public String getMessage()
        Returns:
        the log message
      • getArgumentArray

        public Object[] getArgumentArray()
        Returns:
        the event arguments to insert in the message
      • getThrowable

        public Throwable getThrowable()
        Returns:
        the throwable associated to the event
      • getFormattedMessage

        public String getFormattedMessage()
        Returns:
        the formated version of the message
      • getMessageElements

        public List<String> getMessageElements()
        Returns:
        the log message cut in peaces
        Since:
        4.2M1
      • getTranslationKey

        public String getTranslationKey()
        Returns:
        the translation key associated to the log
        Since:
        5.0M2
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(String formatedMessage)
        Helper to compare the message to the default way of displaying this Message.
        Parameters:
        formatedMessage - the formatted message
        Returns:
        true if this object is the same as the obj argument; false otherwise.
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface CharSequence