Skip to content

v0.1: initial release

Compare
Choose a tag to compare
@maddinat0r maddinat0r released this 19 Mar 18:10
· 49 commits to master since this 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 level
  • native DestroyLog(Logger:logger):
    destroys the specified logger
  • native 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):
    returns true if the specified log level is enabled, false if not or if error occured
  • native 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