-
public final class LogManager
Manager for logging in the Altbeacon library. The default is a warningLogger ()}.
-
-
Method Summary
Modifier and Type Method Description static void
setLogger(Logger logger)
Set the logger that the Altbeacon library will use to send it's log messages to. static Logger
getLogger()
Gets the currently set logger static boolean
isVerboseLoggingEnabled()
Indicates whether verbose logging is enabled. static void
setVerboseLoggingEnabled(boolean enabled)
Sets whether verbose logging is enabled. static void
v(String tag, String message, Array<Object> args)
Send a verbose log message to the logger. static void
v(Throwable t, String tag, String message, Array<Object> args)
Send a verbose log message to the logger. static void
d(String tag, String message, Array<Object> args)
Send a debug log message to the logger. static void
d(Throwable t, String tag, String message, Array<Object> args)
Send a debug log message to the logger. static void
i(String tag, String message, Array<Object> args)
Send a info log message to the logger. static void
i(Throwable t, String tag, String message, Array<Object> args)
Send a info log message to the logger. static void
w(String tag, String message, Array<Object> args)
Send a warning log message to the logger. static void
w(Throwable t, String tag, String message, Array<Object> args)
Send a warning log message to the logger. static void
e(String tag, String message, Array<Object> args)
Send a error log message to the logger. static void
e(Throwable t, String tag, String message, Array<Object> args)
Send a error log message to the logger. -
-
Method Detail
-
setLogger
static void setLogger(Logger logger)
Set the logger that the Altbeacon library will use to send it's log messages to.
- Parameters:
logger
- The logger implementation that logs will be sent to for logging.
-
isVerboseLoggingEnabled
static boolean isVerboseLoggingEnabled()
Indicates whether verbose logging is enabled. If not, expensive calculations to create log strings should be avoided.
-
setVerboseLoggingEnabled
static void setVerboseLoggingEnabled(boolean enabled)
Sets whether verbose logging is enabled. If not, expensive calculations to create log strings should be avoided.
-
v
static void v(String tag, String message, Array<Object> args)
Send a verbose log message to the logger.
- Parameters:
tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
v
static void v(Throwable t, String tag, String message, Array<Object> args)
Send a verbose log message to the logger.
- Parameters:
t
- An exception to log.tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
d
static void d(String tag, String message, Array<Object> args)
Send a debug log message to the logger.
- Parameters:
tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
d
static void d(Throwable t, String tag, String message, Array<Object> args)
Send a debug log message to the logger.
- Parameters:
t
- An exception to log.tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
i
static void i(String tag, String message, Array<Object> args)
Send a info log message to the logger.
- Parameters:
tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
i
static void i(Throwable t, String tag, String message, Array<Object> args)
Send a info log message to the logger.
- Parameters:
t
- An exception to log.tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
w
static void w(String tag, String message, Array<Object> args)
Send a warning log message to the logger.
- Parameters:
tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
w
static void w(Throwable t, String tag, String message, Array<Object> args)
Send a warning log message to the logger.
- Parameters:
t
- An exception to log.tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
e
static void e(String tag, String message, Array<Object> args)
Send a error log message to the logger.
- Parameters:
tag
- Used to identify the source of a log message.message
- The message you would like logged.args
- Arguments for string formatting.
-
-
-
-