|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.common.Log
Maintains and provides the interface to a single instance of the logging object, so that all callers are writing to a single log.
| Field Summary | |
protected static LogInterface |
instance
Deprecated. |
| Fields inherited from interface com.epicentric.common.LogConstants |
kCritical, kDebug, kDefault, kDevDebug, kDoNotOverrideFileInstruction, kError, kFileLogging, kNoFileLogging, kNone, kStatus, kUndefined, kWarning |
| Method Summary | |
static void |
debugMessage(boolean debug,
String msg)
Deprecated. If debug == true, logs msg as
kDevDebug. |
static void |
debugMessage(boolean debug,
Throwable thrown,
String msg)
Deprecated. If debug == true, logs msg,
thrown, and the stack trace as kDevDebug. |
static void |
errorMessage(String msg)
Deprecated. Logs the given message as kError. |
static void |
errorMessage(Throwable thrown)
Deprecated. Logs the given exception and stack trace as kError. |
static void |
forceFileLogging()
Deprecated. Begins a log file if one is not already in place. |
static LogInterface |
getLog()
Deprecated. Returns the underlying logging object. |
static String |
getLogFileContents()
Deprecated. Returns the last few hundred lines of the log file. |
static int |
getLogFileContents(int start,
int count,
StringBuffer buffer)
Deprecated. Returns a page full of log entries. |
static int |
getSize()
Deprecated. Get the line count of the log file. |
static void |
initClass()
Deprecated. Initializes Vignette Portal logging, using the default Vignette Portal properties file and log banner ("## Vignette Portal log started"). |
static void |
initClass(Properties props,
String[] logBanner)
Deprecated. Supports the use of Vignette Portal Log classes outside of Vignette Portal. |
static boolean |
isLoaded()
Deprecated. Determines whether the logging object is loaded. |
static void |
message(int type,
Object msg)
Deprecated. Logs the given message at the given log level. |
static void |
message(int type,
Throwable thrown,
String msg)
Deprecated. Logs the given message, given exception, and the stack trace at the given log level. |
static void |
message(String msg)
Deprecated. as of 4.0, to be removed in 8.0 or later. Instead, use Log.message(int, java.lang.Object) with the explicit log level. |
static void |
message(Throwable thrown,
String msg)
Deprecated. Logs the given message, given exception, and the stack trace at log level kError. |
static void |
rolloverLogFile()
Deprecated. Explicitly rolls over the file log (that is, starts logging to a new file). |
static void |
setTrace(boolean b)
Deprecated. Turns logging of exception stack traces on or off. |
static void |
setUseDateTimestamp(boolean useDateTimeStamp)
Deprecated. Sets whether all messages are preceded by a date and time stamp. |
static void |
suppressFileLogging()
Deprecated. Suppresses logging to a file. |
static boolean |
usingDateTimestamp()
Deprecated. Checks whether logging is using the date and time stamp. |
static boolean |
willLogAtLevel(int level)
Deprecated. Checks whether a message at a particular level will be logged. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static LogInterface instance
| Method Detail |
public static void initClass(Properties props,
String[] logBanner)
props - A properties object containing the standard FileLog properties.logBanner - The banner to be printed at the beginning of each log file/stream.
Multiple banner lines can be supplied here (hence the[]).public static void initClass()
public static void forceFileLogging()
public static void suppressFileLogging()
public static void rolloverLogFile()
public static int getLogFileContents(int start,
int count,
StringBuffer buffer)
start - 0-based start pointcount - Lines to seebuffer - Target for the contentstart and countpublic static String getLogFileContents()
public static int getSize()
public static boolean willLogAtLevel(int level)
level - Logging level to testtrue if a message at level will be logged
public static void message(int type,
Object msg)
type - Integer constant identifying the message levelmsg - Message object (String, array, hash table, etc.)LogConstantspublic static void message(String msg)
Log.message(int, java.lang.Object) with the explicit log level.
kStatus.LogConstants.kStatus,
Log.message(int, java.lang.Object)
public static void message(Throwable thrown,
String msg)
kError.thrown - Exception class namemsg - Message stringLogConstants.kError
public static void message(int type,
Throwable thrown,
String msg)
type - Integer constant identifying the message levelthrown - Exception class namemsg - Message string
public static void debugMessage(boolean debug,
String msg)
debug == true, logs msg as
kDevDebug.LogConstants.kDevDebug
public static void debugMessage(boolean debug,
Throwable thrown,
String msg)
debug == true, logs msg,
thrown, and the stack trace as kDevDebug.LogConstants.kDevDebugpublic static void errorMessage(Throwable thrown)
kError.LogConstants.kErrorpublic static void errorMessage(String msg)
kError.LogConstants.kErrorpublic static void setTrace(boolean b)
public static void setUseDateTimestamp(boolean useDateTimeStamp)
public static boolean usingDateTimestamp()
true if date/time stamp is being used,
false otherwisepublic static LogInterface getLog()
public static boolean isLoaded()
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||