Logger

public interface interface Logger

An interface describes the type you must implement if you wish to provide your own logging implementation.

Methods

v

public void v(String tag, String message)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

ReturnValue

Name Description
void

v

public void v(String tag, String message, Throwable t)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

Throwable t

an exception to log

ReturnValue

Name Description
void

d

public void d(String tag, String message)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

ReturnValue

Name Description
void

d

public void d(String tag, String message, Throwable t)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

Throwable t

an exception to log

ReturnValue

Name Description
void

i

public void i(String tag, String message)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

ReturnValue

Name Description
void

i

public void i(String tag, String message, Throwable t)

Logs aLogLevellog message.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

Throwable t

an exception to log

ReturnValue

Name Description
void

w

public void w(String tag, String message)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

ReturnValue

Name Description
void

w

public void w(String tag, String message, Throwable t)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

Throwable t

an exception to log

ReturnValue

Name Description
void

e

public void e(String tag, String message)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

ReturnValue

Name Description
void

e

public void e(String tag, String message, Throwable t)

Logs aLogLevelmessage.

Parameters

Name Description
String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

Throwable t

an exception to log

ReturnValue

Name Description
void

log

public void log(LogLevel logLevel, String tag, String message)

Logs a message with log level.

Parameters

Name Description
LogLevel logLevel

log level of the message to be displayed on console

String tag

the source of a log message, the class or activity where the log call occurs

String message

the message you would like logged

ReturnValue

Name Description
void

getLogFile

public File getLogFile(Context context)

Returns a log file with log details.

Parameters

Name Description
Context context

application context from a caller app.

ReturnValue

Name Description
File

addToIgnoreList

public void addToIgnoreList(String ignoreText)

Ignores (does not print) the logs containing provided ignoreText.

Parameters

Name Description
String ignoreText

is the text to ignore.

ReturnValue

Name Description
void