In package com.caseyjbrooks.clog
public interface interface ClogLogger
Denotes a class that can handle messages from Clog.
Methods
public boolean isActive()
Whether this logger actually does anything. For optimization, messages are not formatted if the selected Logger is inactive.
Parameters:
- No parameters
public int log(String tag, String message)
Log a message with a given tag.
Parameters:
-
String tag
the tag, used to filter which messages should be logged
-
String message
the message logged
public int log(String tag, String message, Throwable throwable)
Log an exception with a message and a given tag.
Parameters:
-
String tag
the tag, used to filter which messages should be logged
-
String message
the message logged
-
Throwable throwable
the Exception to log
public Priority priority()
The priority of this Logger. Priorities are used to filter loggers by only showing specific levels of messages, for example only messages of priority ERROR or higher.
Parameters:
- No parameters