-
public class BranchLogger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
BranchLogger.BranchLogLevel
-
Field Summary
Fields Modifier and Type Field Description private static BranchLogger.BranchLogLevel
loggingLevel
private static Boolean
loggingEnabled
private static IBranchLoggingCallbacks
loggerCallback
public final static BranchLogger
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Unit
e(String message)
<p>Creates a <b>Error</b> message in the debugger. final static Unit
w(String message)
<p>Creates a <b>Warning</b> message in the debugger. final static Unit
i(String message)
<p>Creates a <b>Info</b> message in the debugger. final static Unit
d(String message)
<p>Creates a <b>Debug</b> message in the debugger. final static Unit
v(String message)
<p>Creates a <b>Verbose</b> message in the debugger. final static Unit
logAlways(String message)
final static String
stackTraceToString(Exception exception)
final static BranchLogger.BranchLogLevel
getLoggingLevel()
final static Unit
setLoggingLevel(BranchLogger.BranchLogLevel loggingLevel)
final static Boolean
getLoggingEnabled()
final static Unit
setLoggingEnabled(Boolean loggingEnabled)
final static IBranchLoggingCallbacks
getLoggerCallback()
final static Unit
setLoggerCallback(IBranchLoggingCallbacks loggerCallback)
-
-
Method Detail
-
e
final static Unit e(String message)
<p>Creates a <b>Error</b> message in the debugger. If debugging is disabled, this will fail silently.</p>- Parameters:
message
- A {@link String} value containing the debug message to record.
-
w
final static Unit w(String message)
<p>Creates a <b>Warning</b> message in the debugger. If debugging is disabled, this will fail silently.</p>- Parameters:
message
- A {@link String} value containing the debug message to record.
-
i
final static Unit i(String message)
<p>Creates a <b>Info</b> message in the debugger. If debugging is disabled, this will fail silently.</p>- Parameters:
message
- A {@link String} value containing the debug message to record.
-
d
final static Unit d(String message)
<p>Creates a <b>Debug</b> message in the debugger. If debugging is disabled, this will fail silently.</p>- Parameters:
message
- A {@link String} value containing the debug message to record.
-
v
final static Unit v(String message)
<p>Creates a <b>Verbose</b> message in the debugger. If debugging is disabled, this will fail silently.</p>- Parameters:
message
- A {@link String} value containing the debug message to record.
-
stackTraceToString
final static String stackTraceToString(Exception exception)
-
getLoggingLevel
final static BranchLogger.BranchLogLevel getLoggingLevel()
-
setLoggingLevel
final static Unit setLoggingLevel(BranchLogger.BranchLogLevel loggingLevel)
-
getLoggingEnabled
final static Boolean getLoggingEnabled()
-
setLoggingEnabled
final static Unit setLoggingEnabled(Boolean loggingEnabled)
-
getLoggerCallback
final static IBranchLoggingCallbacks getLoggerCallback()
-
setLoggerCallback
final static Unit setLoggerCallback(IBranchLoggingCallbacks loggerCallback)
-
-
-
-