|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.logdoc.LogCentral
Central class for logdoc logging.
Field Summary | |
static String |
DEFAULT_LOCALE
The default locale used at start-up, if no locale is specified in a system property. |
static String |
LOG_LOCALE_PROPERTY
The name of the property that specifies which locale should be used. |
static String |
LOG_STACK_TRACE_AT_MESSAGE_LEVEL
The name of the property that specifies if the stack traces should be displayed at the message level. |
Method Summary | |
static String |
getContext()
Returns the current diagnostic context identifier. |
static String |
getLocale()
Get the locale set in this LogCentral. |
static boolean |
isStackTraceAtMessageLevel()
Indicates whether the stack trace should be displayed at the same level as the message. |
static void |
setLocale(String newLocale)
Sets the locale on all logdoc Log classes. |
static void |
setStackTraceAtMessageLevel(boolean sameLevel)
Sets the display of the stack trace at the same level as the message. |
static void |
useDefaultLocale()
Sets the locale on all logdoc Log classes to the
default locale. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String LOG_LOCALE_PROPERTY
public static final String LOG_STACK_TRACE_AT_MESSAGE_LEVEL
public static final String DEFAULT_LOCALE
Method Detail |
public static String getContext()
null
if
there is none.public static void setLocale(String newLocale) throws IllegalArgumentException, UnsupportedLocaleException
Log
classes.
newLocale
- the new locale, cannot be null
.
IllegalArgumentException
- if newLocale == null
.
UnsupportedLocaleException
- if the specified locale is not supported by all registered
logdoc Log
classes.public static void useDefaultLocale()
Log
classes to the
default locale.
public static String getLocale()
public static void setStackTraceAtMessageLevel(boolean sameLevel)
sameLevel
- true
if the stack trace should be at the same level,
false
if the stack trace should be at DEBUG level.public static boolean isStackTraceAtMessageLevel()
true
if the stack trace should be at the same level,
false
if the stack trace should be at DEBUG level.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |