Class Logs.JULSink

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

    static final class Logs.JULSink
    extends java.lang.Object
    implements Logs.Sink
    Logs.Sinks messages to the JDK.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      JULSink()  
    • 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 java.util.logging.Logger logger
    • Constructor Detail

      • JULSink

        JULSink()
    • 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