public class EmbraceLogger
extends java.lang.Object
Log utility. This class is part of the Embrace Public API.| Modifier and Type | Class and Description |
|---|---|
static class |
EmbraceLogger.Severity |
| Modifier and Type | Method and Description |
|---|---|
static void |
log(EmbraceLogger.Severity severity,
java.lang.String msg,
java.lang.Throwable throwable,
boolean logStacktrace)
Logs a message with a stack trace at the specified severity.
|
static void |
logDebug(java.lang.String msg)
Logs a debug message.
|
static void |
logDebug(java.lang.String msg,
java.lang.Throwable throwable)
Logs a debug message and sends exception to Embrace.
|
static void |
logDebug(java.lang.String msg,
java.lang.Throwable throwable,
java.lang.Boolean logStacktrace)
Logs a debug message with a stack trace.
|
static void |
logError(java.lang.String msg)
Logs an error message.
|
static void |
logError(java.lang.String msg,
java.lang.Throwable throwable)
Logs an error and sends exception to Embrace.
|
static void |
logError(java.lang.String msg,
java.lang.Throwable throwable,
java.lang.Boolean logStacktrace)
Logs an error message with a stack trace.
|
static void |
logInfo(java.lang.String msg)
Logs an info message.
|
static void |
logInfo(java.lang.String msg,
java.lang.Throwable throwable)
Logs an info message and sends exception to Embrace.
|
static void |
logInfo(java.lang.String msg,
java.lang.Throwable throwable,
java.lang.Boolean logStacktrace)
Logs an info message with a stack trace.
|
static void |
logWarning(java.lang.String msg)
Logs a warning message.
|
static void |
logWarning(java.lang.String msg,
java.lang.Throwable throwable)
Logs a warning message and sends exception to Embrace.
|
static void |
logWarning(java.lang.String msg,
java.lang.Throwable throwable,
java.lang.Boolean logStacktrace)
Logs a warning message with a stack trace.
|
static void |
setThreshold(EmbraceLogger.Severity threshold)
Sets the logging threshold.
|
public static void setThreshold(EmbraceLogger.Severity threshold)
threshold - the thresholdpublic static void logDebug(java.lang.String msg)
msg - the message to logpublic static void logDebug(java.lang.String msg,
java.lang.Throwable throwable)
msg - the message to logthrowable - the exceptionpublic static void logDebug(java.lang.String msg,
java.lang.Throwable throwable,
java.lang.Boolean logStacktrace)
msg - the message to logthrowable - the exceptionlogStacktrace - include stacktrace in logpublic static void logInfo(java.lang.String msg)
msg - the message to logpublic static void logInfo(java.lang.String msg,
java.lang.Throwable throwable)
msg - the message to logthrowable - the exceptionpublic static void logInfo(java.lang.String msg,
java.lang.Throwable throwable,
java.lang.Boolean logStacktrace)
msg - the message to logthrowable - the exceptionpublic static void logWarning(java.lang.String msg)
msg - the message to logpublic static void logWarning(java.lang.String msg,
java.lang.Throwable throwable)
msg - the message to logthrowable - the exceptionpublic static void logWarning(java.lang.String msg,
java.lang.Throwable throwable,
java.lang.Boolean logStacktrace)
msg - the message to logthrowable - the exceptionlogStacktrace - include stacktrace in logpublic static void logError(java.lang.String msg)
msg - the message to logpublic static void logError(java.lang.String msg,
java.lang.Throwable throwable)
msg - the message to logthrowable - the exceptionpublic static void logError(java.lang.String msg,
java.lang.Throwable throwable,
java.lang.Boolean logStacktrace)
msg - the message to logthrowable - the exceptionlogStacktrace - include stacktrace in logpublic static void log(EmbraceLogger.Severity severity, java.lang.String msg, java.lang.Throwable throwable, boolean logStacktrace)
severity - the severity of the messagemsg - the message to logthrowable - the exceptionlogStacktrace - include stacktrace in log