Log - acadet/ludivine GitHub Wiki

A classic log implementation. Developers can set desired level of log with LogLevel enum:

  • Debug: All messages (default)
  • Test: All messages except debug ones
  • Production: Only warnings and errors
  • Opaque: Only errors

References

Methods

static debug(msg : string) : void

Prints a debug message.

Parameters

msg Message to print

static error(error : Exception) : void

Prints an error.

Parameters

error Error to use

static inform(msg : string) : void

Prints information.

Parameters

msg Desired information

static setLevel(level : LogLevel) : void

Sets current level of log.

Parameters

level Log level (see above)

static warn(msg : string) : void

Prints warning.

Parameters

msg Desired message