Package com.ibm.mq.spring.boot
Class MQConfigurationPropertiesTrace
java.lang.Object
com.ibm.mq.spring.boot.MQConfigurationPropertiesTrace
This class gives a way of configuring MQ JMS trace and logging parameters in a Spring style
rather than needing additional external files and properties.
See
https://www.ibm.com/docs/en/ibm-mq/latest?topic=tmcja-collecting-mq-classes-java-trace-by-using-mq-classes-java-configuration-file#q131540_
and https://www.ibm.com/docs/en/ibm-mq/latest?topic=mcjcf-using-java-standard-environment-trace-configure-java-trace
These properties can be in a file pointed to by the com.ibm.msg.client.config.location system property whose value is
a URL. If it's in a file, the URL must begin "file:" - there's no default of the protocol. But here, we're setting things
directly as system properties.
Not all of the available properties are exposed. On the other hand, we have options that refer to both FFST and FFDC
as there is inconsistency in the Java packages. Both variables will map to the same known property.
For consistency in this code, I'm always really working with the FFDC variables.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFFDCPath(String ffdcPath) voidsetFfdcSuppress(String ffdcSuppress) voidsetFfdcSuppressProbeIDs(String ffdcSuppressProbeIDs) voidsetFFSTPath(String ffstPath) voidsetFfstSuppress(String ffstSuppress) voidsetFfstSuppressProbeIDs(String ffstSuppressProbeIDs) voidsetLogFile(String logFile) voidsetMaxTraceBytes(String maxTraceBytes) voidsetParameterTrace(String parameterTrace) voidvoidsetTraceFile(String traceFile) voidsetTraceFileCount(String traceFileCount) voidsetTraceFileLimit(String traceFileLimit) voidtraceProperties(org.slf4j.Logger parentLogger)
-
Field Details
-
propertyTraceStatus
- See Also:
-
propertyTraceFileName
- See Also:
-
propertyTraceFileLimit
- See Also:
-
propertyTraceFileCount
- See Also:
-
propertyParameterTrace
- See Also:
-
propertyMaxTraceBytes
- See Also:
-
propertyFFDCSuppress
- See Also:
-
propertyFFDCSuppressProbeIDs
- See Also:
-
propertyLogFileName
- See Also:
-
-
Constructor Details
-
MQConfigurationPropertiesTrace
public MQConfigurationPropertiesTrace()
-
-
Method Details
-
setStatus
-
setMaxTraceBytes
-
setTraceFileLimit
-
setTraceFileCount
-
setParameterTrace
-
setFfdcSuppress
-
setFfdcSuppressProbeIDs
-
setFfstSuppress
-
setFfstSuppressProbeIDs
-
setLogFile
-
setTraceFile
-
setFFDCPath
-
setFFSTPath
-
getStatus
-
getMaxTraceBytes
-
getTraceFileLimit
-
getTraceFileCount
-
getParameterTrace
-
getFfdcSuppress
-
getFfdcSuppressProbeIDs
-
getFfstSuppress
-
getFfstSuppressProbeIDs
-
getLogFile
-
getTraceFile
-
getFFDCPath
-
getFFSTPath
-
traceProperties
public void traceProperties(org.slf4j.Logger parentLogger)
-