FormatterBuilder
A builder class for constructing custom formatted log messages using a simple chain DSL.
The FormatterBuilder lets you compose the final log output by chaining steps in the desired order: e.g. pointer, spaces, line reference, the actual message, and any custom text. Important: the original message is not added automatically. You must call message somewhere in the chain, otherwise the resulting formatted text will not contain your message.
Available steps:
withPointer adds a pointer string (default:
--->).space adds a single space character.
withLineReference adds a platform-specific caller reference.
message injects the original message text.
custom adds any custom text.
Functions
Builds an IFormatter that applies all configured formatting operations to each message.
Adds custom text to the output sequence.
Adds the original log message to the output sequence.
Adds a single space character to the output sequence.
Adds a platform-specific caller reference to the output sequence.
Adds a pointer marker to the output sequence.