public final class LogManager extends Object
Loggers.warningLogger() ()}.| Modifier and Type | Method and Description |
|---|---|
static void |
d(String tag,
String message,
Object... args)
Send a debug log message to the logger.
|
static void |
d(Throwable t,
String tag,
String message,
Object... args)
Send a debug log message to the logger.
|
static void |
e(String tag,
String message,
Object... args)
Send a error log message to the logger.
|
static void |
e(Throwable t,
String tag,
String message,
Object... args)
Send a error log message to the logger.
|
static Logger |
getLogger()
Gets the currently set logger
|
static void |
i(String tag,
String message,
Object... args)
Send a info log message to the logger.
|
static void |
i(Throwable t,
String tag,
String message,
Object... args)
Send a info log message to the logger.
|
static boolean |
isVerboseLoggingEnabled()
Indicates whether verbose logging is enabled.
|
static boolean |
isWarnLoggingEnabled()
Indicates whether warn logging is enabled.
|
static void |
setLogger(Logger logger)
Set the logger that the Altbeacon library will use to send it's log messages to.
|
static void |
setVerboseLoggingEnabled(boolean enabled)
Sets whether verbose logging is enabled.
|
static void |
setWarnLoggingEnabled(boolean enabled)
Sets whether warn logging is enabled.
|
static void |
v(String tag,
String message,
Object... args)
Send a verbose log message to the logger.
|
static void |
v(Throwable t,
String tag,
String message,
Object... args)
Send a verbose log message to the logger.
|
static void |
w(String tag,
String message,
Object... args)
Send a warning log message to the logger.
|
static void |
w(Throwable t,
String tag,
String message,
Object... args)
Send a warning log message to the logger.
|
public static void setLogger(Logger logger)
logger - The logger implementation that logs will be sent to for logging.NullPointerException - if logger is null.Logger,
Loggerspublic static Logger getLogger()
Loggerpublic static boolean isVerboseLoggingEnabled()
public static void setVerboseLoggingEnabled(boolean enabled)
enabled - public static boolean isWarnLoggingEnabled()
public static void setWarnLoggingEnabled(boolean enabled)
enabled - public static void v(String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.args - Arguments for string formatting.public static void v(Throwable t, String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.t - An exception to log.args - Arguments for string formatting.public static void d(String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.args - Arguments for string formatting.public static void d(Throwable t, String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.t - An exception to log.args - Arguments for string formatting.public static void i(String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.args - Arguments for string formatting.public static void i(Throwable t, String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.t - An exception to log.args - Arguments for string formatting.public static void w(String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.args - Arguments for string formatting.public static void w(Throwable t, String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.t - An exception to log.args - Arguments for string formatting.public static void e(String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.args - Arguments for string formatting.public static void e(Throwable t, String tag, String message, Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged. This message may contain string formatting
which will be replaced with values from args.t - An exception to log.args - Arguments for string formatting.