public class Logger extends Object
Logger for Robolectric. For now, it simply prints messages to stdout.
Logging can be enabled by setting the property: robolectric.logging.enabled = true
.
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and 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 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)
Log an info message.
message
- Message text.args
- Message arguments.public static void warn(String message, Object... args)
Log a warning message.
message
- Message text.args
- Message arguments.public static void error(String message, Throwable e)
Log an error message.
message
- Message text.e
- The exception.public static void error(String message, Object... args)
Log an error message.
message
- Message text.args
- Message arguments.public static void debug(String message, Object... args)
Log a debug message.
message
- Message text.args
- Message arguments.public static boolean loggingEnabled()