|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.core.Log
This class is used for logging. It allows time measurement and different types of logging destinations
| Field Summary | |
|---|---|
static boolean |
active
Is logging active? |
static int |
MODE_OFF
Possible Mode values for logging output |
static int |
MODE_SYSOUT
Possible Mode values for logging output |
private static boolean |
nanoChecked
Has the check for the nanoMethod already been done? |
private static java.lang.reflect.Method |
nanoMethod
The method to invoke when using PROFILE_MODE_NANO. |
private static java.lang.Class[] |
NO_PARAMETERS
Zero-length Class-Array to use for Reflection calls |
static int |
outputMode
Mode for logging output |
static int |
PROFILE_MODE_MILLI
Possible Mode values for the profile time value |
static int |
PROFILE_MODE_NANO
Possible Mode values for the profile time value |
static int |
PROFILE_MODE_OFF
Possible Mode values for the profile time value |
static int |
profileMode
Mode for profilying |
static int |
TYPE_ALL
Possible message types |
static int |
TYPE_DEBUG
Possible message types |
static int |
TYPE_ERROR
Possible message types |
static int |
TYPE_MESSAGE
Possible message types |
static int |
TYPE_PROFILE
Possible message types |
static int |
TYPE_WARNING
Possible message types |
static int |
types
Message types to which should be reacted |
| Constructor Summary | |
|---|---|
Log()
|
|
| Method Summary | |
|---|---|
protected static java.lang.String |
getProfile()
Get a profile String which tells the current time depending on the selected profile mode. |
static void |
log(java.lang.String s)
Log a message of unspecified type (will always be logged if logging is active). |
static void |
log(java.lang.String message,
int type)
Log a message of a specific type |
private static void |
nanoCheck()
Search for the method to invoke when using PROFILE_MODE_NANO |
private static long |
pseudoNano()
Pseudo method as replacement for System.nanoTime() for
compatibility to 1.4 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean active
public static final int MODE_OFF
public static final int MODE_SYSOUT
private static boolean nanoChecked
private static java.lang.reflect.Method nanoMethod
PROFILE_MODE_NANO. For
compatibility to 1.4 this has to be done via Reflection
private static final java.lang.Class[] NO_PARAMETERS
public static int outputMode
public static final int PROFILE_MODE_MILLI
public static final int PROFILE_MODE_NANO
public static final int PROFILE_MODE_OFF
public static int profileMode
public static final int TYPE_ALL
public static final int TYPE_DEBUG
public static final int TYPE_ERROR
public static final int TYPE_MESSAGE
public static final int TYPE_PROFILE
public static final int TYPE_WARNING
public static int types
| Constructor Detail |
|---|
public Log()
| Method Detail |
|---|
protected static java.lang.String getProfile()
public static void log(java.lang.String s)
s - The message
public static void log(java.lang.String message,
int type)
message - The messagetype - Type of the messageprivate static void nanoCheck()
private static long pseudoNano()
System.nanoTime() for
compatibility to 1.4
System.currentTimeMillis()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||