Print

Simple dev tool for printing information and warnings to console

Shared Module - This can be used by both clients and the server

lib.print

Print some information to the console

The debug type can only be used in debug mode.

lib.print(_type, ...)

-- Example
lib.print("debug", "Example print")
Parameter
Type
Required
Description

_type

String

Type of print - info, warn, error or debug

...

Any

Debug info

lib.addPrintType

Add a new of print to be used

lib.addPrintType(_type, prefix, condition)
Parameter
Type
Required
Description

_type

String

Unique print type

prefix

String

What should be prefixed in front of the debug

condition

Function

Callback to check if it should print

Last updated