Class LogForwarder

  • All Implemented Interfaces:
    org.jadice.util.log.Logger

    public class LogForwarder
    extends Object
    implements org.jadice.util.log.Logger
    Logger that forwards log events to the calling client that is associated to the given WorkerController (i.e. NodeWorker)

    Caveat: This logger forwards only ERRORs, FATALs and WARNINGs to the client!

    • Constructor Detail

      • LogForwarder

        public LogForwarder​(QualifiedLogEventReceiver deligate,
                            org.jadice.util.log.qualified.MessageID messageId,
                            EnumSet<org.jadice.util.log.Level> enabledLevels)
        Construct a LogForwarder.
        Parameters:
        deligate - The WorkerController which is governed by this Logger
        messageId - This MessageID that events will haven
        enabledLevels - The Levels for which the logging is enabled
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.jadice.util.log.Logger
      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface org.jadice.util.log.Logger
      • debug

        public void debug​(String s)
        Specified by:
        debug in interface org.jadice.util.log.Logger
      • debug

        public void debug​(String s,
                          Object... objects)
        Specified by:
        debug in interface org.jadice.util.log.Logger
      • debug

        public void debug​(String s,
                          Throwable throwable)
        Specified by:
        debug in interface org.jadice.util.log.Logger
      • isErrorEnabled

        public boolean isErrorEnabled()
        Specified by:
        isErrorEnabled in interface org.jadice.util.log.Logger
      • error

        public void error​(String s)
        Specified by:
        error in interface org.jadice.util.log.Logger
      • error

        public void error​(String s,
                          Object... objects)
        Specified by:
        error in interface org.jadice.util.log.Logger
      • error

        public void error​(String s,
                          Throwable throwable)
        Specified by:
        error in interface org.jadice.util.log.Logger
      • isFatalEnabled

        public boolean isFatalEnabled()
        Specified by:
        isFatalEnabled in interface org.jadice.util.log.Logger
      • fatal

        public void fatal​(String s)
        Specified by:
        fatal in interface org.jadice.util.log.Logger
      • fatal

        public void fatal​(String s,
                          Object... objects)
        Specified by:
        fatal in interface org.jadice.util.log.Logger
      • fatal

        public void fatal​(String s,
                          Throwable throwable)
        Specified by:
        fatal in interface org.jadice.util.log.Logger
      • isInfoEnabled

        public boolean isInfoEnabled()
        Specified by:
        isInfoEnabled in interface org.jadice.util.log.Logger
      • info

        public void info​(String s)
        Specified by:
        info in interface org.jadice.util.log.Logger
      • info

        public void info​(String s,
                         Object... objects)
        Specified by:
        info in interface org.jadice.util.log.Logger
      • info

        public void info​(String s,
                         Throwable throwable)
        Specified by:
        info in interface org.jadice.util.log.Logger
      • isTraceEnabled

        public boolean isTraceEnabled()
        Specified by:
        isTraceEnabled in interface org.jadice.util.log.Logger
      • trace

        public void trace​(String s)
        Specified by:
        trace in interface org.jadice.util.log.Logger
      • trace

        public void trace​(String s,
                          Object... objects)
        Specified by:
        trace in interface org.jadice.util.log.Logger
      • trace

        public void trace​(String s,
                          Throwable throwable)
        Specified by:
        trace in interface org.jadice.util.log.Logger
      • isWarnEnabled

        public boolean isWarnEnabled()
        Specified by:
        isWarnEnabled in interface org.jadice.util.log.Logger
      • warn

        public void warn​(String s)
        Specified by:
        warn in interface org.jadice.util.log.Logger
      • warn

        public void warn​(String s,
                         Object... objects)
        Specified by:
        warn in interface org.jadice.util.log.Logger
      • warn

        public void warn​(String s,
                         Throwable throwable)
        Specified by:
        warn in interface org.jadice.util.log.Logger