| java.lang.Object org.netbeans.modules.uml.core.support.umlsupport.Log
Log | public class Log (Code) | | Provides basic logging services for Describe IDE integrations.
author: Sumitabh Kansal |
Method Summary | |
public static void | banner(String s) Writes a string to the logfile, boxed by banner lines. | public static void | dumpStack(String s) Dumps a stack trace of the current thread to the logfile. | public static void | entry(String s) Writes a string to the logfile, prefixed by the current date and an
[Entry] tag, and terminated by a newline. | public static void | err(String s) Writes a string to the logfile, prefixed by the current date and an
[Error] tag, and terminated by a newline. | public static void | exit(String s) Writes a string to the logfile, prefixed by the current date and an
[Exit] tag, and terminated by a newline. | public static void | impossible(String mess) Writes a stack trace to the log file, with the error message
given. | public static void | init() Initializes Log. | public static void | mdrEventTrace(int mdrEventID, String s, boolean newline) Writes a string to the logfile, prefixed by the current date and an
[Error] tag, and terminated by a newline. | public static void | out(String s) Writes a string to the logfile, prefixed by the current date and a
[Debug] tag, and terminated by a newline. | public static void | reset() Forces Log to reinitialize when the next Log request is made. | public static void | stackTrace(Throwable t) Writes a stack trace to the logfile. | public static void | write(String s) Writes a string to the logfile, with an ending newline. | public static void | write(String s, boolean newline) Writes a string to the logfile, with an ending newline. | public static void | writeDescribeLogs(String s) Writes a string to the logfile, prefixed by a [DescribeLog] tag. |
MDR_EVENT_FLAG_RESET | final public static int MDR_EVENT_FLAG_RESET(Code) | | |
MDR_EVENT_MASK_ASSOCIATE | final public static int MDR_EVENT_MASK_ASSOCIATE(Code) | | |
MDR_EVENT_MASK_ATTRIBUTE | final public static int MDR_EVENT_MASK_ATTRIBUTE(Code) | | |
MDR_EVENT_MASK_CANCELED | final public static int MDR_EVENT_MASK_CANCELED(Code) | | |
MDR_EVENT_MASK_CHANGE | final public static int MDR_EVENT_MASK_CHANGE(Code) | | |
MDR_EVENT_MASK_EXTENT | final public static int MDR_EVENT_MASK_EXTENT(Code) | | |
MDR_EVENT_MASK_GENERAL | final public static int MDR_EVENT_MASK_GENERAL(Code) | | |
MDR_EVENT_MASK_INSTANCE | final public static int MDR_EVENT_MASK_INSTANCE(Code) | | |
MDR_EVENT_MASK_PLANNED | final public static int MDR_EVENT_MASK_PLANNED(Code) | | |
MDR_EVENT_MASK_SPECIFIC | final public static int MDR_EVENT_MASK_SPECIFIC(Code) | | |
MDR_EVENT_MASK_TRANSACTION | final public static int MDR_EVENT_MASK_TRANSACTION(Code) | | |
MDR_EVENT_MASK_UNKNOWN | final public static int MDR_EVENT_MASK_UNKNOWN(Code) | | |
mdrCanceledEventLogFlag | public static int mdrCanceledEventLogFlag(Code) | | |
mdrChangeEventLogFlag | public static int mdrChangeEventLogFlag(Code) | | |
mdrPlannedEventLogFlag | public static int mdrPlannedEventLogFlag(Code) | | |
banner | public static void banner(String s)(Code) | | Writes a string to the logfile, boxed by banner lines. Use sparingly...
Parameters: s - The String to write. |
dumpStack | public static void dumpStack(String s)(Code) | | Dumps a stack trace of the current thread to the logfile.
Parameters: s - The String (or null) that will be used to describe the stacktrace. |
entry | public static void entry(String s)(Code) | | Writes a string to the logfile, prefixed by the current date and an
[Entry] tag, and terminated by a newline. Suitable for function entry
logs.
Parameters: s - The String to write. |
err | public static void err(String s)(Code) | | Writes a string to the logfile, prefixed by the current date and an
[Error] tag, and terminated by a newline. Suitable for error
notifications.
Parameters: s - The String to write. |
exit | public static void exit(String s)(Code) | | Writes a string to the logfile, prefixed by the current date and an
[Exit] tag, and terminated by a newline. Suitable for function exit
logs.
Parameters: s - The String to write. |
impossible | public static void impossible(String mess)(Code) | | Writes a stack trace to the log file, with the error message
given. Suitable for logging conditions that should never occur.
Parameters: mess - The error message. |
init | public static void init()(Code) | | Initializes Log.
|
mdrEventTrace | public static void mdrEventTrace(int mdrEventID, String s, boolean newline)(Code) | | Writes a string to the logfile, prefixed by the current date and an
[Error] tag, and terminated by a newline. Suitable for error
notifications.
Parameters: s - The String to write. |
out | public static void out(String s)(Code) | | Writes a string to the logfile, prefixed by the current date and a
[Debug] tag, and terminated by a newline. Suitable for debugging log
messages.
Parameters: s - The String to write. |
reset | public static void reset()(Code) | | Forces Log to reinitialize when the next Log request is made.
|
stackTrace | public static void stackTrace(Throwable t)(Code) | | Writes a stack trace to the logfile.
Parameters: t - The Throwable object that holds the stack trace. |
write | public static void write(String s)(Code) | | Writes a string to the logfile, with an ending newline.
|
write | public static void write(String s, boolean newline)(Code) | | Writes a string to the logfile, with an ending newline.
|
writeDescribeLogs | public static void writeDescribeLogs(String s)(Code) | | Writes a string to the logfile, prefixed by a [DescribeLog] tag.
Parameters: s - The String to write. |
|
|