@rbxts/rlog > RobloxConsoleSinkConfig > outputMethod
RobloxConsoleSinkConfig.outputMethod property
Optional method to send output to the roblox console.
By default, logs above LogLevel.WARNING will be sent through warn
, and the rest through print
.
Signature:
readonly outputMethod?: OutputMethodCallback;
Example
export const customOutputMethod: OutputMethodCallback = (entry, messages) => {
print(...messages);
};