Package backtraceio.library.logger
Class BacktraceLogger
- java.lang.Object
-
- backtraceio.library.logger.BacktraceLogger
-
public class BacktraceLogger extends java.lang.Object
Backtrace Logger class for logging messages from inside library
-
-
Constructor Summary
Constructors Constructor Description BacktraceLogger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
d(java.lang.String tag, java.lang.String message)
static int
e(java.lang.String tag, java.lang.String message)
Log messages that suggest error or something that should not happenstatic int
e(java.lang.String tag, java.lang.String message, java.lang.Throwable tr)
Log messages that suggest error or something that should not happenstatic void
setLevel(LogLevel level)
set logging level from which all messages should be logged to the consolestatic int
w(java.lang.String tag, java.lang.String message)
Log messages that suggest something unexpected or rare has happened, which isn't an error.
-
-
-
Method Detail
-
setLevel
public static void setLevel(LogLevel level)
set logging level from which all messages should be logged to the console- Parameters:
level
- login level
-
d
public static int d(java.lang.String tag, java.lang.String message)
- Parameters:
tag
- source of logs, usually identifies the class or activitymessage
- text information which should be logged- Returns:
- the number of bytes written
-
w
public static int w(java.lang.String tag, java.lang.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- Returns:
- the number of bytes written
-
e
public static int e(java.lang.String tag, java.lang.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- Returns:
- the number of bytes written
-
e
public static int e(java.lang.String tag, java.lang.String message, java.lang.Throwable tr)
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 loggedtr
- an exception to log- Returns:
- the number of bytes written
-
-