Class Logs.SLF4JSink

  • All Implemented Interfaces:
    Logs.Sink
    Enclosing class:
    Logs

    static final class Logs.SLF4JSink
    extends java.lang.Object
    implements Logs.Sink
    Logs.Sinks messages via SLF4J.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      SLF4JSink()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTraceEnabled()  
      void trace​(java.lang.String message, java.lang.Throwable cause)
      Accepts a trace message and optional exception cause.
      void warn​(java.lang.String message, java.lang.Throwable cause)
      Accepts a warning message and optional exception cause.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
    • Constructor Detail

      • SLF4JSink

        SLF4JSink()
    • Method Detail

      • isTraceEnabled

        public boolean isTraceEnabled()
        Specified by:
        isTraceEnabled in interface Logs.Sink
        Returns:
        true if trace is enabled; otherwise false
      • trace

        public void trace​(java.lang.String message,
                          java.lang.Throwable cause)
        Description copied from interface: Logs.Sink
        Accepts a trace message and optional exception cause.
        Specified by:
        trace in interface Logs.Sink
        Parameters:
        message - The trace message
        cause - The exception cause
      • warn

        public void warn​(java.lang.String message,
                         java.lang.Throwable cause)
        Description copied from interface: Logs.Sink
        Accepts a warning message and optional exception cause.
        Specified by:
        warn in interface Logs.Sink
        Parameters:
        message - The warning message
        cause - The exception cause