Skip to main content

@rbxts/rlog > RobloxConsoleSinkConfig > formatMethod

RobloxConsoleSinkConfig.formatMethod property

Optional method to convert log entries to output.

Signature:

readonly formatMethod?: FormatMethodCallback;

Example

export const customFormatMethod: FormatMethodCallback = (entry) => {
return $tuple(entry.message, entry.encoded_data);
};