Package 

Class EmbraceLogger

    • 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 log
        throwable - 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 log
        throwable - the exception
        logStacktrace - include stacktrace in log
      • logInfo

         static void logInfo(String msg)

        Logs an info message.

        Parameters:
        msg - the message to log
      • logInfo

         static void logInfo(String msg, Throwable throwable)

        Logs an info message and sends exception to Embrace.

        Parameters:
        msg - the message to log
        throwable - 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 log
        throwable - 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 log
        throwable - 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 log
        throwable - the exception
        logStacktrace - 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 log
        throwable - 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 log
        throwable - the exception
        logStacktrace - 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 message
        msg - the message to log
        throwable - the exception
        logStacktrace - include stacktrace in log