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
All Methods Static Methods Concrete Methods 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.
-
-
-
Method Detail
-
info
public static void info(String message, Object... args)
Log an info message.- Parameters:
message
- Message text.args
- Message arguments.
-
warn
public static void warn(String message, Object... args)
Log a warning message.- Parameters:
message
- Message text.args
- Message arguments.
-
error
public static void error(String message, Throwable e)
Log an error message.- Parameters:
message
- Message text.e
- The exception.
-
error
public static void error(String message, Object... args)
Log an error message.- Parameters:
message
- Message text.args
- Message arguments.
-
debug
public static void debug(String message, Object... args)
Log a debug message.- Parameters:
message
- Message text.args
- Message arguments.
-
lifecycle
public static void lifecycle(String message, Object... args)
Log a lifecycle message.- Parameters:
message
- Message text.args
- Message arguments.
-
loggingEnabled
public static boolean loggingEnabled()
-
-