-
@Deprecated() public class EmbraceLogger
Use instead. This class will be removed in a future release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumEmbraceLogger.SeverityUse io.embrace.android.embracesdk.Severity instead.
-
Method Summary
Modifier and Type Method Description static voidsetThreshold(EmbraceLogger.Severity threshold)Sets the logging threshold. static voidlogDebug(String msg)Logs a debug message. static voidlogDebug(String msg, Throwable throwable)Logs a debug message and sends exception to Embrace. static voidlogDebug(String msg, Throwable throwable, Boolean logStacktrace)Logs a debug message with a stack trace. static voidlogInfo(String msg)Logs an info message. static voidlogInfo(String msg, Throwable throwable)Logs an info message and sends exception to Embrace. static voidlogInfo(String msg, Throwable throwable, Boolean logStacktrace)Logs an info message with a stack trace. static voidlogWarning(String msg)Logs a warning message. static voidlogWarning(String msg, Throwable throwable)Logs a warning message and sends exception to Embrace. static voidlogWarning(String msg, Throwable throwable, Boolean logStacktrace)Logs a warning message with a stack trace. static voidlogError(String msg)Logs an error message. static voidlogError(String msg, Throwable throwable)Logs an error and sends exception to Embrace. static voidlogError(String msg, Throwable throwable, Boolean logStacktrace)Logs an error message with a stack trace. static voidlog(EmbraceLogger.Severity severity, String msg, Throwable throwable, boolean logStacktrace)Logs a message with a stack trace at the specified severity. -
-
Method Detail
-
setThreshold
static void setThreshold(EmbraceLogger.Severity threshold)
Sets the logging threshold. Anything below the threshold will not be logged.
- Parameters:
threshold- the threshold
-
logDebug
static void logDebug(String msg)
Logs a debug message.
- Parameters:
msg- the message to log
-
logDebug
static void logDebug(String msg, Throwable throwable)
Logs a debug message and sends exception to Embrace.
- Parameters:
msg- the message to logthrowable- the exception
-
logDebug
static void logDebug(String msg, Throwable throwable, Boolean logStacktrace)
Logs a debug message with a stack trace.
- Parameters:
msg- the message to logthrowable- the exceptionlogStacktrace- include stacktrace in log
-
logInfo
static void logInfo(String msg, Throwable throwable)
Logs an info message and sends exception to Embrace.
- Parameters:
msg- the message to logthrowable- the exception
-
logInfo
static void logInfo(String msg, Throwable throwable, Boolean logStacktrace)
Logs an info message with a stack trace.
- Parameters:
msg- the message to logthrowable- the exception
-
logWarning
static void logWarning(String msg)
Logs a warning message.
- Parameters:
msg- the message to log
-
logWarning
static void logWarning(String msg, Throwable throwable)
Logs a warning message and sends exception to Embrace.
- Parameters:
msg- the message to logthrowable- the exception
-
logWarning
static void logWarning(String msg, Throwable throwable, Boolean logStacktrace)
Logs a warning message with a stack trace.
- Parameters:
msg- the message to logthrowable- the exceptionlogStacktrace- include stacktrace in log
-
logError
static void logError(String msg)
Logs an error message.
- Parameters:
msg- the message to log
-
logError
static void logError(String msg, Throwable throwable)
Logs an error and sends exception to Embrace.
- Parameters:
msg- the message to logthrowable- the exception
-
logError
static void logError(String msg, Throwable throwable, Boolean logStacktrace)
Logs an error message with a stack trace.
- Parameters:
msg- the message to logthrowable- the exceptionlogStacktrace- include stacktrace in log
-
log
static void log(EmbraceLogger.Severity severity, String msg, Throwable throwable, boolean logStacktrace)
Logs a message with a stack trace at the specified severity. The 'data' attributes areignored.
- Parameters:
severity- the severity of the messagemsg- the message to logthrowable- the exceptionlogStacktrace- include stacktrace in log
-
-
-
-