v0.1: initial release
Current natives:
native Logger:CreateLog(const name[], E_LOGLEVEL:level = INFO | WARNING | ERROR)
:
creates a logger with the specified name and sets the log levelnative DestroyLog(Logger:logger)
:
destroys the specified loggernative SetLogLevel(Logger:logger, E_LOGLEVEL:level, bool:enabled)
:
enables/disables the specified log level (only one log level)native bool:IsLogLevel(Logger:logger, E_LOGLEVEL:level)
:
returnstrue
if the specified log level is enabled,false
if not or if error occurednative Log(Logger:logger, E_LOGLEVEL:level, const msg[], {Float,_}:...)
:
logs the specified message with the specified logger
Note:- valid format specifiers are
%%
for an actual%
character,%i
/%d
for numbers,%f
for floats and%s
for strings - width and spacing is not supported
- valid format specifiers are