Skip to content

mintmousse.newLogger

Creates a new logger object.

Synopsis

mintmousse.newLogger( name, color )

Parameters

name string
Identifier shown in the logs
color color ("white")
Color used to highlight the name in consoles that support color highlighting

Returns

logger logger
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" })

See Also