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