Skip to main content

@rbxts/rlog > RLogConfig > tag

RLogConfig.tag property

String to prefix to all logs.

Will be followed by a -> between the log message and the log level.

Signature:

readonly tag?: string;

Remarks

This setting is ignored when merging configs.

Example

const logger = new RLog({ tag: "Main" });

logger.i("Hello world!");
// > [INFO]: Main -> Hello world!