Configure the Log Message Format

Configure the gateway log message format to by editing following properties in the ssglog.properties file:
gateway91
Configure the
CA API Gateway
log message format to by editing following properties in the
ssglog.properties
file:
sink.format.
<format>
sink.format.
<log sink name>
.
<format>
Examples:
  • sink.format.VERBOSE
    formats VERBOSE level messages for all Log Sinks
  • sink.format.MyErrorSink.RAW
    formats messages for the Log Sink named "MyErrorSink".
The
CA API Gateway
 uses the Java standard/default log formatter
 java.util.logging.SimpleFormatter
 for the log messages. For more information, refer to this page in the Oracle documentation: https://docs.oracle.com/javase/7/docs/api/java/util/logging/SimpleFormatter.html
The following table describes the default format strings:
Log Format
Format String
RAW
%4$s
STANDARD
%2$s %3$s: %4$s
VERBOSE
[%8$s] %2$s %3$s %6$s: %4$s
The format string is a Java
String.format
formatting string. The following table lists the items that are available to be logged, with each referenced by number in the format string.
Index Value
Data
1
JVM Time in millis
2
Java Log Level (INFO, WARNING, ...)
3
Logger Name (Class originating the log message)
4
Message logged
5
Thread ID (Note this is already written to Syslog via a lower level)
6
Source Method originating the log message
7
Exception message (this is automatically added when required, don't use)
8
Log Sink Name
For information on where the log formats are used, see Log Sink Properties.