Class LogDataBuilder

  • All Implemented Interfaces:
    AsLevel, LogData

    public class LogDataBuilder
    extends Object
    implements LogData
    The Log Data Builder
    Author:
    Pedro T. Oliveira
    • Constructor Detail

      • LogDataBuilder

        public LogDataBuilder​(org.apache.logging.log4j.Logger logger,
                              Map<String,​Object> logData)
        Parameters:
        logger -
        logData -
      • LogDataBuilder

        public LogDataBuilder​(org.apache.logging.log4j.Logger logger,
                              Map<String,​Object> logData,
                              Throwable t)
        Parameters:
        logger -
        logData -
        t -
    • Method Detail

      • asInfo

        public AsLevel asInfo()
        Description copied from interface: AsLevel
        Log information as Info
        Specified by:
        asInfo in interface AsLevel
        Returns:
        AsLevel
      • asWarn

        public AsLevel asWarn()
        Description copied from interface: AsLevel
        Log information as Warn
        Specified by:
        asWarn in interface AsLevel
        Returns:
        AsLevel
      • asError

        public AsLevel asError()
        Description copied from interface: AsLevel
        Log information as Error
        Specified by:
        asError in interface AsLevel
        Returns:
        AsLevel
      • asDebug

        public AsLevel asDebug()
        Description copied from interface: AsLevel
        Log information as Debug
        Specified by:
        asDebug in interface AsLevel
        Returns:
        AsLevel
      • getData

        public String getData()
        Description copied from interface: LogData
        Retrieve data as String.
        Specified by:
        getData in interface LogData
        Returns:
        The data.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object