com.sap.tc.logging
Class LoggingUtilities
java.lang.Object
com.sap.tc.logging.LoggingUtilities
public class LoggingUtilities
- extends Object
Title: Logging
Description: Logging API
Copyright: Copyright (c) 2008
Company: SAP AG
All rights reserved.
This software is the confidential and proprietary information
of SAP AG. ("Confidential Information"). You shall
not disclose such Confidential Information and shall use it
only in accordance with the terms of the license agreement
you entered into with SAP AG.
|
Method Summary |
static String |
createExceptionMessage(String msgID,
String message,
Object... args)
|
static void |
defaultConfiguration(Category category,
String logFileName)
Use this method for stand alone tools only. |
static void |
defaultConfiguration(Location location,
String traceFileName)
Use this method for stand alone tools only. |
static String |
getCsnComponentByClassLoader(ClassLoader classLoader)
|
static String |
getCsnComponentByClassLoaderName(String classLoaderName)
|
static String |
getCsnComponentByDCName(String dcName)
|
static String |
getDcNameByClassLoader(ClassLoader classLoader)
|
static String |
getDcNameByClassLoaderName(String classLoaderName)
|
static LogRecord |
logAndTrace(int severity,
Category category,
Location location,
Throwable t,
String msgId,
String dcName,
String csnComponent,
String msg,
Object... messageArgs)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingUtilities
public LoggingUtilities()
createExceptionMessage
public static String createExceptionMessage(String msgID,
String message,
Object... args)
- Parameters:
msgID - - message IDmessage - - message textargs - - message arguments
- Returns:
- exception message that will be written
logAndTrace
public static LogRecord logAndTrace(int severity,
Category category,
Location location,
Throwable t,
String msgId,
String dcName,
String csnComponent,
String msg,
Object... messageArgs)
- Parameters:
severity - - the severity that will be passed to the log recordcategory - - the category that will be passed to the log recordlocation - - the location that will be passed to the log recordt - - the Throwable that will be passed to the log recordmsgId - - the Message ID that will be passed to the log recorddcName - - the DC Name that will be passed to the log recordcsnComponent - - the CSN Component that will be passed to the log recordmsg - - the message text that will be passed to the log recordmessageArgs - - the message arguments that will be passed to the log record
- Returns:
- the written log record or null if no log record was written
getCsnComponentByClassLoaderName
public static String getCsnComponentByClassLoaderName(String classLoaderName)
- Parameters:
classLoaderName - - the name of the classloader that will be used to get the CSN Component from
- Returns:
- the CSN Component or null when the CSN Component could not be calculated
getCsnComponentByClassLoader
public static String getCsnComponentByClassLoader(ClassLoader classLoader)
- Parameters:
classLoader - - the classloader that will be used to get the CSN Component from
- Returns:
- the CSN Component or null when the CSN Component could not be calculated
getCsnComponentByDCName
public static String getCsnComponentByDCName(String dcName)
- Parameters:
dcName - Development Component name in format Vendor/Name
- Returns:
- CSN Component that is calculated based on the provided DC name
getDcNameByClassLoader
public static String getDcNameByClassLoader(ClassLoader classLoader)
- Parameters:
classLoader - - the classloader that will be used to get the CSN Component from
- Returns:
- DC Name that is calculated based on the provided classloader or null when it
can not be fetched
getDcNameByClassLoaderName
public static String getDcNameByClassLoaderName(String classLoaderName)
- Parameters:
classLoaderName - - the name of the classloader that will be used to get the CSN Component from
- Returns:
- DC Name that is calculated based on the provided classloader name or null when it can not be
fetched
defaultConfiguration
public static void defaultConfiguration(Category category,
String logFileName)
- Use this method for stand alone tools only.
- Parameters:
category - - specifies the category that has to be with default (INFO) severitylogFileName - - specifies the log destination that have to be with the default formatting
defaultConfiguration
public static void defaultConfiguration(Location location,
String traceFileName)
- Use this method for stand alone tools only.
- Parameters:
location - - specifies the location that has to be with default (ERROR) severitytraceFileName - - specifies the trace destination that have to be with the default formatting
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] BRMS-FACADE
|
[sap.com] tc/brms/edit/api
|
api
|
BC-BMT-BRM-ENG
|
[sap.com] BRMS-FACADE
|
[sap.com] tc/brms/facade
|
api
|
BC-BMT-BRM-ENG
|
[sap.com] CORE-TOOLS
|
[sap.com] com.sap.engine.client.libdeprecated
|
-
|
BC-JAS
|
[sap.com] ENGFACADE
|
[sap.com] public.test.facade
|
runtime
|
BC-TWB-TST-JUT
|
[sap.com] ENGFACADE
|
[sap.com] tc/bl/logging/api
|
api
|
BC-JAS
|
[sap.com] ENGINEAPI
|
[sap.com] tc/loggingdeprecated
|
-
|
BC-JAS-ADM-LOG-API
|
[sap.com] ENGINEAPI
|
[sap.com] tc/loggingdeprecated
|
default
|
BC-JAS-ADM-LOG-API
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] FRAMEWORK
|
[sap.com] tc/ddic/ddicruntime
|
default
|
BC-DWB-JDD
|
Copyright 2014 SAP AG Complete Copyright Notice