Package org.robolectric.util
Class Logger
java.lang.Object
org.robolectric.util.Logger
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 Summary
Constructors Constructor Description Logger() -
Method Summary
Modifier and Type Method Description static voiddebug(String message, Object... args)Log a debug message.static voiderror(String message, Object... args)Log an error message.static voiderror(String message, Throwable e)Log an error message.static voidinfo(String message, Object... args)Log an info message.static voidlifecycle(String message, Object... args)Log a lifecycle message.static booleanloggingEnabled()static voidstrict(String message, Object... args)static voidstrict(String message, Throwable e)static voidwarn(String message, Object... args)Log a warning message.
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
strict
-
strict
-
info
Log an info message.- Parameters:
message- Message text.args- Message arguments.
-
warn
Log a warning message.- Parameters:
message- Message text.args- Message arguments.
-
error
Log an error message.- Parameters:
message- Message text.e- The exception.
-
error
Log an error message.- Parameters:
message- Message text.args- Message arguments.
-
debug
Log a debug message.- Parameters:
message- Message text.args- Message arguments.
-
lifecycle
Log a lifecycle message.- Parameters:
message- Message text.args- Message arguments.
-
loggingEnabled
public static boolean loggingEnabled()
-