public class Logger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static ILogger |
logger |
static int |
MAX_MSG_LENGTH |
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
static ILogger |
_() |
static void |
crashTest(java.lang.String msg) |
static void |
die(java.lang.String thread,
java.lang.Exception e) |
static void |
exception(java.lang.Exception e) |
static void |
exception(java.lang.String info,
java.lang.Exception e) |
static void |
halt() |
static boolean |
isLoggingEnabled() |
static void |
log(java.lang.String type,
java.lang.String message)
Posts the given data to an existing Incident Log, if one has
been registered and if logging is enabled on the device.
|
protected static void |
logForce(java.lang.String type,
java.lang.String message) |
static void |
registerLogger(ILogger theLogger) |
public static final int MAX_MSG_LENGTH
private static ILogger logger
public static void registerLogger(ILogger theLogger)
public static ILogger _()
public static void log(java.lang.String type, java.lang.String message)
type
- The type of incident to be logged.message
- A message describing the incident.protected static void logForce(java.lang.String type, java.lang.String message)
public static boolean isLoggingEnabled()
public static void exception(java.lang.Exception e)
public static void exception(java.lang.String info, java.lang.Exception e)
public static void die(java.lang.String thread, java.lang.Exception e)
public static void crashTest(java.lang.String msg)
public static void halt()