|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.LogRecord
org.norther.tammi.acorn.logger.log.LogEntry
public class LogEntry
A extended log record.
| Constructor Summary | |
|---|---|
LogEntry()
Constructs a new entry. |
|
LogEntry(String msg,
Object arg,
Throwable cause)
Constructs a new entry with parameters. |
|
| Method Summary | |
|---|---|
Object |
getContext()
Gets the context. |
String |
getDate()
Gets the formatted date. |
int |
getIntLevel()
Gets the int level. |
Object |
getLogger()
Gets the native logger. |
static String |
getTimeZoneId()
Gets the default time zone. |
boolean |
isStackTrace()
Checks the stack trace. |
void |
print()
Prints a system error message. |
void |
setContext(Object ctx)
Sets the context. |
void |
setIntLevel(int l)
Sets the int level. |
void |
setLogger(Object log)
Sets the native logger. |
void |
setStackTrace(boolean flag)
Sets the stack trace. |
static void |
setTimeZoneId(String zone)
Sets the default time zone. |
String |
toString()
Returns the string representation of this entry. |
static String |
toString(Object object)
Default log output for an object. |
static String |
toString(Object object,
boolean encode)
Optional URL encoded output for an object. |
| Methods inherited from class java.util.logging.LogRecord |
|---|
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogEntry()
public LogEntry(String msg,
Object arg,
Throwable cause)
msg - the message.arg - the argument(s).cause - the cause.| Method Detail |
|---|
public static String getTimeZoneId()
public static void setTimeZoneId(String zone)
zone - the default time zone of log entries.public static String toString(Object object)
object - an object.
public static String toString(Object object,
boolean encode)
object - an object.encode - use URL encoding.
public void print()
public String getDate()
public int getIntLevel()
public void setIntLevel(int l)
l - the int level.public boolean isStackTrace()
public void setStackTrace(boolean flag)
flag - true for a trace, false otherwise.public Object getLogger()
public void setLogger(Object log)
log - the native logger.public Object getContext()
public void setContext(Object ctx)
ctx - the context.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||