-
public final class LoggerHelper to easily log into the application.
Internal logs can be enabled using setprop log.tag.BatchInternal VERBOSE
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringPUBLIC_TAGpublic final static StringINTERNAL_TAGpublic static LoggerDelegateloggerDelegatepublic static LoggerLevelloggerLevelpublic final static booleandev
-
Method Summary
Modifier and Type Method Description static booleanshouldLogForLevel(@NonNull() LoggerLevel level)static voidverbose(String module, String msg, Throwable t)Verbose log with module, message and throwable. static voidverbose(String msg, Throwable t)Verbose log with message and throwable. static voidverbose(String module, String msg)Verbose log with module and message. static voidverbose(String msg)Verbose log with message. static voidinfo(String module, String msg, Throwable t)Info log with module, message and throwable. static voidinfo(String msg, Throwable t)Info log with message and throwable. static voidinfo(String module, String msg)Info log with module and message. static voidinfo(String msg)Verbose log with message. static voidwarning(String module, String msg, Throwable t)Warning log with module, message and throwable. static voidwarning(String msg, Throwable t)Warning log with message and throwable. static voidwarning(String module, String msg)Warning log with module and message. static voidwarning(String msg)Warning log with message. static voiderror(String module, String msg, Throwable t)Error log with module, message and throwable. static voiderror(String msg, Throwable t)Error log with message and throwable. static voiderror(String module, String msg)Error log with module and message. static voiderror(String msg)Error log with message. static voidinternal(String module, String msg, Throwable t)Debug log with module, message and throwable. static voidinternal(String msg, Throwable t)Internal log with message and throwable. static voidinternal(String module, String msg)Debug log with module and message. static voidinternal(String msg)Debug log with message. -
-
Method Detail
-
shouldLogForLevel
static boolean shouldLogForLevel(@NonNull() LoggerLevel level)
-
verbose
static void verbose(String module, String msg, Throwable t)
Verbose log with module, message and throwable.
- Parameters:
module- Module name.msg- Message of the error.t- Throwable exception.
-
verbose
static void verbose(String msg, Throwable t)
Verbose log with message and throwable.
- Parameters:
msg- Message of the error.t- Throwable exception.
-
verbose
static void verbose(String module, String msg)
Verbose log with module and message.
- Parameters:
module- Module name.msg- Message of the error.
-
verbose
static void verbose(String msg)
Verbose log with message.
- Parameters:
msg- Message of the error.
-
info
static void info(String module, String msg, Throwable t)
Info log with module, message and throwable.
- Parameters:
module- Module name.msg- Message of the error.t- Throwable exception.
-
info
static void info(String msg, Throwable t)
Info log with message and throwable.
- Parameters:
msg- Message of the error.t- Throwable exception.
-
info
static void info(String module, String msg)
Info log with module and message.
- Parameters:
module- Module name.msg- Message of the error.
-
warning
static void warning(String module, String msg, Throwable t)
Warning log with module, message and throwable.
- Parameters:
module- Module name.msg- Message of the error.t- Throwable exception.
-
warning
static void warning(String msg, Throwable t)
Warning log with message and throwable.
- Parameters:
msg- Message of the error.t- Throwable exception.
-
warning
static void warning(String module, String msg)
Warning log with module and message.
- Parameters:
module- Module name.msg- Message of the error.
-
warning
static void warning(String msg)
Warning log with message.
- Parameters:
msg- Message of the error.
-
error
static void error(String module, String msg, Throwable t)
Error log with module, message and throwable.
- Parameters:
module- Module name.msg- Message of the error.t- Throwable exception.
-
error
static void error(String msg, Throwable t)
Error log with message and throwable.
- Parameters:
msg- Message of the error.t- Throwable exception.
-
error
static void error(String module, String msg)
Error log with module and message.
- Parameters:
module- Module name.msg- Message of the error.
-
internal
static void internal(String module, String msg, Throwable t)
Debug log with module, message and throwable.
- Parameters:
module- Module name.msg- Message of the error.t- Throwable exception.
-
internal
static void internal(String msg, Throwable t)
Internal log with message and throwable.
- Parameters:
msg- Message of the error.t- Throwable exception.
-
internal
static void internal(String module, String msg)
Debug log with module and message.
- Parameters:
module- Module name.msg- Message of the error.
-
-
-
-