Text layout.
Text layout converts the given logging record into the text string using a given pattern. Text layout pattern is a string with a special placeholders provided inside curly brackets ("{}").
Supported placeholders:
- {UtcDateTime} / {LocalDateTime} - converted to the UTC/local date & time (e.g. "1997-07-16T19:20:30.123Z" / "1997-07-16T19:20:30.123+01:00")
- {UtcDate} / {LocalDate} - converted to the UTC/local date (e.g. "1997-07-16")
- {Time} / {LocalTime} - converted to the UTC/local time (e.g. "19:20:30.123Z" / "19:20:30.123+01:00")
- {UtcYear} / {LocalYear} - converted to the UTC/local four-digits year (e.g. "1997")
- {UtcMonth} / {LocalMonth} - converted to the UTC/local two-digits month (e.g. "07")
- {UtcDay} / {LocalDay} - converted to the UTC/local two-digits day (e.g. "16")
- {UtcHour} / {LocalHour} - converted to the UTC/local two-digits hour (e.g. "19")
- {UtcMinute} / {LocalMinute} - converted to the UTC/local two-digits minute (e.g. "20")
- {UtcSecond} / {LocalSecond} - converted to the UTC/local two-digits second (e.g. "30")
- {UtcTimezone} / {LocalTimezone} - converted to the UTC/local timezone suffix (e.g. "Z" / "+01:00")
- {Millisecond} - converted to the three-digits millisecond (e.g. "123")
- {Microsecond} - converted to the three-digits microsecond (e.g. "123")
- {Nanosecond} - converted to the three-digits nanosecond (e.g. "789")
- {Thread} - converted to the thread Id (e.g. "0x0028F3D8")
- {Level} - converted to the logging level
- {Logger} - converted to the logger name
- {Message} - converted to the log message
- {EndLine} - converted to the end line suffix (e.g. Unix "\n" or Windows "\r\n")
Thread-safe.
Definition at line 47 of file text_layout.h.