public class

Logger.LogcatLogger

extends Logger

 java.lang.Object

androidx.work.Logger

↳androidx.work.Logger.LogcatLogger

Overview

The default Logger implementation that writes to logcat when the requests meet or exceed the loggingLevel specified in the constructor. This class offers no threading guarantees.

Summary

Constructors
publicLogcatLogger(int loggingLevel)

Methods
public abstract voiddebug(java.lang.String tag, java.lang.String message)

Equivalent to Log.d.

public abstract voiddebug(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.d.

public abstract voiderror(java.lang.String tag, java.lang.String message)

Equivalent to Log.e.

public abstract voiderror(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.e.

public abstract voidinfo(java.lang.String tag, java.lang.String message)

Equivalent to Log.i.

public abstract voidinfo(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.i.

public abstract voidverbose(java.lang.String tag, java.lang.String message)

Equivalent to Log.v.

public abstract voidverbose(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.v.

public abstract voidwarning(java.lang.String tag, java.lang.String message)

Equivalent to Log.w.

public abstract voidwarning(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.w.

from Loggerget, setLogger, tagWithPrefix
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public LogcatLogger(int loggingLevel)

Methods

public abstract void verbose(java.lang.String tag, java.lang.String message)

Equivalent to Log.v.

public abstract void verbose(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.v.

public abstract void debug(java.lang.String tag, java.lang.String message)

Equivalent to Log.d.

public abstract void debug(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.d.

public abstract void info(java.lang.String tag, java.lang.String message)

Equivalent to Log.i.

public abstract void info(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.i.

public abstract void warning(java.lang.String tag, java.lang.String message)

Equivalent to Log.w.

public abstract void warning(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.w.

public abstract void error(java.lang.String tag, java.lang.String message)

Equivalent to Log.e.

public abstract void error(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

Equivalent to Log.e.