public class AWMLoggingUtility
extends java.lang.Object
| Constructor and Description |
|---|
AWMLoggingUtility() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getMaskedPropertyValue(IPropertyValue pPropValue)
Returns the string value of a given
IPropertyValue, but returns "**********" if the property type is ETypes.PASSWORD. |
static java.lang.String |
getMaskedPropertyValue(Property pProperty,
java.lang.String pValue)
Returns the string value of a given
Property, but returns "**********" if the property type is ETypes.PASSWORD. |
static boolean |
isAwmDebugEnabled()
Checks for the debug flag of the TAURUS Plug-In.
|
static void |
logError(java.lang.String pString,
java.lang.Exception pE)
Logs an Error with the given messages, which will be visible in the
Eclipse Error Log View.
|
static void |
logError(java.lang.String pString,
java.lang.Exception pE,
int pSeverity)
Logs an Error with the given messages and severity, which will be visible
in the Eclipse Error Log View.
|
static void |
traceMessage(java.lang.String pMsg)
Creates a log message if AWM debugging is turned on.
|
static void |
traceMessage(java.lang.String pMsg,
boolean pForceTrace)
Creates a log message if AWM debugging is turned on or the force flag is
set to
true. |
static void |
traceMessage(java.lang.String pMsg,
int pSeverity)
Creates a log message if AWM debugging is turned on.
|
static void |
traceMessage(java.lang.String pMsg,
int pSeverity,
boolean pForce)
Creates a log message if AWM debugging is turned on or the force flag is
set to
true. |
static void |
traceStatus(org.eclipse.core.runtime.IStatus pStatus,
boolean pForce)
Logs an
IStatus if AWM debugging is turned on or the force flag
is set to true. |
public static boolean isAwmDebugEnabled()
true if both debug flags of the
com.microfocus.awm Plug-In have been enabledpublic static void traceMessage(java.lang.String pMsg,
int pSeverity,
boolean pForce)
true.pMsg - the message to log.pSeverity - IStatus.INFO, IStatus.WARNING or
IStatus.ERRORpForce - whether to trace the message even if debug is disabledpublic static void traceStatus(org.eclipse.core.runtime.IStatus pStatus,
boolean pForce)
IStatus if AWM debugging is turned on or the force flag
is set to true.pStatus - the status to logpForce - whether to trace the message even if debug is disabledpublic static void logError(java.lang.String pString,
java.lang.Exception pE,
int pSeverity)
pString - a user-readable messagepE - the exceptionpSeverity - the severity (IStatus constants)logError(String, Exception)public static void logError(java.lang.String pString,
java.lang.Exception pE)
pString - a user-readable messagepE - the exceptionlogError(String, Exception, int)public static void traceMessage(java.lang.String pMsg)
Same as calling traceMessage(pMsg, IStatus.INFO, false).
pMsg - the message to log.public static void traceMessage(java.lang.String pMsg,
boolean pForceTrace)
true.
Same as calling
traceMessage(pMsg, IStatus.INFO, pForceTrace).
pMsg - the message to log.pForceTrace - option to force the tracingpublic static void traceMessage(java.lang.String pMsg,
int pSeverity)
Same as calling traceMessage(pMsg, pSeverity, false).
pMsg - the message to log.pSeverity - IStatus.INFO, IStatus.WARNING or
IStatus.ERRORtraceMessage(String)public static java.lang.String getMaskedPropertyValue(IPropertyValue pPropValue)
IPropertyValue, but returns "**********" if the property type is ETypes.PASSWORD.
This is intended to prevent potential password property values to appear in traces, logs or other sensitive locations.
pPropValue - a property valuenull if the given property value or its string value is null.
IPropertyValue.getValue() if the property type is not PASSWORD.
"**********" if the property value type is PASSWORD.
public static java.lang.String getMaskedPropertyValue(Property pProperty, java.lang.String pValue)
Property, but returns "**********" if the property type is ETypes.PASSWORD.
This is intended to prevent potential password property values to appear in traces, logs or other sensitive locations.
pProperty - a propertypValue - the String value of the propertynull if the given property value or its string value is null.
PASSWORD.
"**********" if the property value type is PASSWORD.
Copyright © 2015 Micro Focus GmbH. All rights reserved.