|
SOAj Core v. 1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.soaj.core.util.internal.SjUtilLoggerJdk
public class SjUtilLoggerJdk
This utility class contains static methods for JDK logging.
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com .
| Field Summary | |
|---|---|
private static java.lang.String |
CLASS_NAME
Class name. |
| Constructor Summary | |
|---|---|
private |
SjUtilLoggerJdk()
Constructor - Private |
| Method Summary | |
|---|---|
static java.util.logging.Level |
configureConsoleHandler(SjPluginProperties pluginProperties,
java.util.logging.Logger logger)
This method configures a console handler and binds it to the logger. |
static java.util.logging.Level |
configureFileHandler(SjPluginProperties pluginProperties,
java.util.logging.Logger logger)
This method configures a file handler and binds it to the logger. |
static java.util.logging.Level |
convertToLevel(int intLevel)
|
private static void |
firstRowStringBuilding(java.util.logging.LogRecord logRecord,
java.lang.StringBuilder sbMessage,
SjNullableUserId userId)
|
static java.lang.String |
formatDate(long milliseconds)
This method formats a milliseconds since 1970 into a date/time stringNotNull. |
static java.lang.String |
formatDeclarativeLogging(java.util.logging.LogRecord logRecord,
SjNullableUserId userId)
This method formats the given log record and returns the formatted String. |
static java.lang.String |
formatRecordLogging(java.util.logging.LogRecord logRecord,
SjNullableUserId userId)
This method formats the given log record and returns the formatted String. |
static void |
formatStackTrace(int numberOfMessages,
java.lang.String message,
java.lang.String stackTraceLabel,
java.lang.StringBuilder sbMessage,
java.lang.Throwable thrown)
This method formats the given stack trace and returns the formatted String. |
static java.lang.String |
formatThrowableLogging(java.util.logging.LogRecord logRecord,
SjNullableUserId userId)
This method formats the given log record and returns the formatted String. |
static java.lang.String |
formatTraceLogging(java.util.logging.LogRecord logRecord,
SjNullableUserId userId)
This method formats the given log record and returns the formatted String. |
static java.util.logging.Logger |
initializeLogger(SjPluginProperties pluginProperties)
This method initializes a logger. |
private static void |
perConfigurationStringBuilding(java.util.logging.LogRecord logRecord,
java.lang.StringBuilder sbMessage,
SjNullableUserId userId)
|
private static void |
secondRowStringBuilding(java.util.logging.LogRecord logRecord,
java.lang.StringBuilder sbMessage)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String CLASS_NAME
| Constructor Detail |
|---|
private SjUtilLoggerJdk()
| Method Detail |
|---|
public static java.util.logging.Logger initializeLogger(SjPluginProperties pluginProperties)
pluginProperties - The wrapper object containing the descriptor document
properties associated with this plugin.
public static java.util.logging.Level configureConsoleHandler(SjPluginProperties pluginProperties,
java.util.logging.Logger logger)
pluginProperties - The wrapper object containing the descriptor document
properties associated with this plugin.logger -
public static java.util.logging.Level configureFileHandler(SjPluginProperties pluginProperties,
java.util.logging.Logger logger)
pluginProperties - The wrapper object containing the descriptor document
properties associated with this plugin.logger -
public static java.util.logging.Level convertToLevel(int intLevel)
intLevel -
public static java.lang.String formatDate(long milliseconds)
milliseconds - Milliseconds since 1970.
public static java.lang.String formatTraceLogging(java.util.logging.LogRecord logRecord,
SjNullableUserId userId)
String.
logRecord - userId - The authorized user id or null.
public static java.lang.String formatDeclarativeLogging(java.util.logging.LogRecord logRecord,
SjNullableUserId userId)
String.
logRecord - userId - The authorized user id or null.
public static java.lang.String formatRecordLogging(java.util.logging.LogRecord logRecord,
SjNullableUserId userId)
String.
logRecord - userId - The authorized user id or null.
public static java.lang.String formatThrowableLogging(java.util.logging.LogRecord logRecord,
SjNullableUserId userId)
String.
logRecord - LogRecord objects are used to pass logging
requests between the logging framework and individual log
Handlers.userId - The authorized user id or null.
private static void firstRowStringBuilding(java.util.logging.LogRecord logRecord,
java.lang.StringBuilder sbMessage,
SjNullableUserId userId)
logRecord - sbMessage - userId -
private static void secondRowStringBuilding(java.util.logging.LogRecord logRecord,
java.lang.StringBuilder sbMessage)
logRecord - sbMessage -
private static void perConfigurationStringBuilding(java.util.logging.LogRecord logRecord,
java.lang.StringBuilder sbMessage,
SjNullableUserId userId)
logRecord - sbMessage - userId -
public static void formatStackTrace(int numberOfMessages,
java.lang.String message,
java.lang.String stackTraceLabel,
java.lang.StringBuilder sbMessage,
java.lang.Throwable thrown)
String.
numberOfMessages - message - stackTraceLabel - sbMessage - thrown -
|
SOAj Core v. 1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.