Class LogKeyValueBuilderHolder

    • Constructor Detail

      • LogKeyValueBuilderHolder

        public LogKeyValueBuilderHolder​(String key,
                                        FileLogger fileLoggerDelegate,
                                        RemoteLogger splunkLoggerDelegate)
        Construct a new LogKeyValueBuilderHolder
        Parameters:
        key -
        fileLoggerDelegate -
        splunkLoggerDelegate -
    • Method Detail

      • value

        public RecursiveLogKey value​(Object msg)
        Description copied from interface: LogKey
        Attach a value to this correspondent key.
        Specified by:
        value in interface LogKey
        Parameters:
        msg - to attach
        Returns:
        a SplunkAsLevel
      • 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
      • key

        public LogKey key​(String key)
        Description copied from interface: RecursiveLogKey
        Add a key to log
        Specified by:
        key in interface RecursiveLogKey
        Parameters:
        key - key value. Can be formated with "=" or without it.
        Returns:
        SplunkLogKey