The service log file console pattern uses colors to highlight the service type and message level. On Windows, console colors should be disabled.
Service log file record structure
Timestamp (UTC) [Service Type] [Level] [Trace Id] [Class and Line Number] [Thread] - Message
Service log file record sample
2018-11-18T15:39:04.902Z [jfac ] [INFO ] [4b1b8a0b04e31b80] [s.r.NodeRegistryServiceImpl:44] [http-exec-4 ] - request to "join" with serviceId jffe@000
Value | Description | Example | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Timestamp | The date and time the message was logged, in UTC time with the standard format: [yyyy-MM-dd'T'HH:mm:ss.SSSZ] based on RFC-3339 |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Service Type | The service type, color coordinated with a specific color for each service, including:
Cross-product services (such as router, tomcat, scripts) use the same color. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Service Identifier | The service identifier is 4 to 6 character long and represents one of the following microservices.
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trace Id | The trace id value. Trace id is used to identify a request across services |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class and Line Number | The fully qualified class name and line number printing this log entry. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Thread | The thread printing this log entry. "main" if not java. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Message | The log entry message. |
|