public class Logger extends Object
Logging can be enabled by setting the property: robolectric.logging.enabled = true
.
Constructor | Description |
---|---|
Logger() |
Modifier and Type | Method | Description |
---|---|---|
static void |
debug(String message,
Object... args) |
Log a debug message.
|
static void |
error(String message,
Object... args) |
Log an error message.
|
static void |
error(String message,
Throwable e) |
Log an error message.
|
static void |
info(String message,
Object... args) |
Log an info message.
|
static void |
lifecycle(String message,
Object... args) |
Log a lifecycle message.
|
static boolean |
loggingEnabled() |
|
static void |
strict(String message,
Object... args) |
|
static void |
strict(String message,
Throwable e) |
|
static void |
warn(String message,
Object... args) |
Log a warning message.
|
public static void info(String message, Object... args)
message
- Message text.args
- Message arguments.public static void warn(String message, Object... args)
message
- Message text.args
- Message arguments.public static void error(String message, Throwable e)
message
- Message text.e
- The exception.public static void error(String message, Object... args)
message
- Message text.args
- Message arguments.public static void debug(String message, Object... args)
message
- Message text.args
- Message arguments.public static void lifecycle(String message, Object... args)
message
- Message text.args
- Message arguments.public static boolean loggingEnabled()