Simple dev tool for printing information and warnings to console
lib.print
Print some information to the console
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