Package 

Object LogcatWriter

  • All Implemented Interfaces:
    me.shikhov.wlog.LogWriter

    
    public class LogcatWriter
     implements LogWriter
                        

    Wrapper for android Log class, controls length of the message(4k limit)

    • Method Summary

      Modifier and Type Method Description
      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

         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