mintmousse.newLogger
Creates a new logger object.
Synopsis
Parameters
namestring- Identifier shown in the logs
colorcolor ("white")- Color used to highlight the name in consoles that support color highlighting
Returns
loggerlogger- A new object of a logger
Examples
local logger = mintmousse.newLogger("Level")
local logger = mintmousse.newLogger("Joystick", "magenta")
local logger = mintmousse.newLogger("Physics", { fg = "white", bg = "blue" })