Skip to content

No print

ErrorRoblox
small-rules/no-print

Use Log instead of print().

Rationale

I just really don’t like unnecessary output logging. print() is a raw Luau function with no log levels, no timestamps, and no filtering. Once it’s in production you can’t turn it off or route it anywhere useful.

Use Log instead. It gives you levels among other things. Not recommended to suppress this one.

Diagnostic Messages

noPrint
print() is a raw output function lacking log levels, timestamps, and filtering. Production systems require structured logging for debugging and monitoring. Replace print(...) with Log.

Configuration

This rule does not accept options.

{
"jsPlugins": [
"@pobammer-ts/small-rules"
],
"rules": {
"small-rules/no-print": "error"
}
}

Examples

global print call
print('Hello');
logger info call
Log.info('Hello');