-
- All Implemented Interfaces:
-
backtraceio.library.logger.Logger
public class BacktraceInternalLogger implements Logger
Backtrace Logger implementation class for logging messages within the Backtrace library.
This class leverages the android.util.Log package to output log messages. It provides a standardized way to log information, warnings, errors, and debug messages from within the library, making it easier to track and diagnose issues.
-
-
Field Summary
Fields Modifier and Type Field Description private int
logLevel
-
Constructor Summary
Constructors Constructor Description BacktraceInternalLogger()
BacktraceInternalLogger(LogLevel logLevel)
-
Method Summary
Modifier and Type Method Description int
getLogLevel()
void
setLevel(@NotNull() LogLevel level)
set logging level from which all messages should be logged to the console int
d(String tag, String message)
int
w(String tag, String message)
Log messages that suggest something unexpected or rare has happened, which isn't an error. int
e(String tag, String message)
Log messages that suggest error or something that should not happen int
e(String tag, String message, Throwable tr)
Log messages that suggest error or something that should not happen -
-
Constructor Detail
-
BacktraceInternalLogger
BacktraceInternalLogger()
-
BacktraceInternalLogger
BacktraceInternalLogger(LogLevel logLevel)
-
-
Method Detail
-
getLogLevel
int getLogLevel()
-
setLevel
void setLevel(@NotNull() LogLevel level)
set logging level from which all messages should be logged to the console
- Parameters:
level
- login level
-
d
int d(String tag, String message)
- Parameters:
tag
- source of logs, usually identifies the class or activitymessage
- text information which should be logged
-
w
int w(String tag, String message)
Log messages that suggest something unexpected or rare has happened, which isn't an error.
- Parameters:
tag
- source of logs, usually identifies the class or activitymessage
- text information which should be logged
-
e
int e(String tag, String message)
Log messages that suggest error or something that should not happen
- Parameters:
tag
- source of logs, usually identifies the class or activitymessage
- text information which should be logged
-
-
-
-