Tofu Engine

~ a 2D game engine w/ an eco-friendly pixel-art retro-soul ~

v0.12.0

Usage

local Log = require("tofu.core.log")

Functions

Log.info(…)

Dump the function arguments to console, with INFO severity level. Each argument is automatically converted to string by (implicitly) calling the tostring() function.

Log.warning(…)

Dump the function arguments to console, with WARNING severity level. Each argument is automatically converted to string by (implicitly) calling the tostring() function.

Log.error(…)

Dump the function arguments to console, with ERROR severity level. Each argument is automatically converted to string by (implicitly) calling the tostring() function.

Log.fatal(…)

Dump the function arguments to console, with FATAL severity level. Each argument is automatically converted to string by (implicitly) calling the tostring() function.

Log.dump(table : table)

Pretty-prints and dumps a table content to console, with INFO severity level.