public class Logger
extends java.lang.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(java.lang.String message,
java.lang.Object... args)
Log a debug message.
|
static void |
error(java.lang.String message,
java.lang.Object... args)
Log an error message.
|
static void |
error(java.lang.String message,
java.lang.Throwable e)
Log an error message.
|
static void |
info(java.lang.String message,
java.lang.Object... args)
Log an info message.
|
static boolean |
loggingEnabled() |
static void |
strict(java.lang.String message,
java.lang.Object... args) |
static void |
strict(java.lang.String message,
java.lang.Throwable e) |
static void |
warn(java.lang.String message,
java.lang.Object... args)
Log a warning message.
|
public static void strict(java.lang.String message, java.lang.Throwable e)
public static void strict(java.lang.String message, java.lang.Object... args)
public static void info(java.lang.String message, java.lang.Object... args)
Log an info message.
message
- Message text.args
- Message arguments.public static void warn(java.lang.String message, java.lang.Object... args)
Log a warning message.
message
- Message text.args
- Message arguments.public static void error(java.lang.String message, java.lang.Throwable e)
Log an error message.
message
- Message text.e
- The exception.public static void error(java.lang.String message, java.lang.Object... args)
Log an error message.
message
- Message text.args
- Message arguments.public static void debug(java.lang.String message, java.lang.Object... args)
Log a debug message.
message
- Message text.args
- Message arguments.public static boolean loggingEnabled()