Class ELogRecord

    • Constructor Detail

      • ELogRecord

        public ELogRecord​(Level level,
                          String message,
                          Subject logBy,
                          Subject logFor)
        Constructor.
        Parameters:
        level - Log level.
        message - Log message.
        logBy - log by subject.
        logFor - log for subject.
    • Method Detail

      • addLogInfo

        public void addLogInfo​(String key,
                               Object value)
        Adds to the log information map, the field key and its corresponding value.
        Specified by:
        addLogInfo in interface ILogRecord
        Parameters:
        key - The key which will be used by the formatter to determine if this piece of info is supposed to be added to the log string according to the selected log fields.
        value - The value which may form a part of the actual log-string.
      • getLogBy

        public Object getLogBy()
        Returns log by subject.
        Specified by:
        getLogBy in interface ILogRecord
        Returns:
        log by subject.
      • getLogFor

        public Object getLogFor()
        Returns log for subject.
        Specified by:
        getLogFor in interface ILogRecord
        Returns:
        log for subject.