Package 

Interface LogWriter


  • 
    public interface LogWriter
    
                        

    Basic interface for log writers

    • Method Summary

      Modifier and Type Method Description
      abstract Unit write(Integer logLevel, String tag, String message, Throwable throwable) Method should write log to underlying storage/console.
      • Methods inherited from class me.shikhov.wlog.LogWriter

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

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

      • write

         abstract Unit write(Integer logLevel, String tag, String message, Throwable throwable)

        Method should write log to underlying storage/console. <br></br> message and throwable can't be null simultaneously.

        Parameters:
        logLevel - logLevel from Log.VERBOSE to Log.ASSERT
        tag - nonnull tag, usually class name.
        message - nullable message to log
        throwable - nullable throwable to log