Logger
Comet routes its internal debug messages through a logger that you can use.
It's emit can be configured via Comet.configureLogger()
.
Log Levels
- SYSTEM - Includes comet debug messages.
- VERBOSE
- WARNING
- ERROR
- FATAL
- SILENT - No logging.
Usage
ts
@System()
class MySystem implements OnInit {
public onInit() {
Logger.warn("This is a warning!") // [MyApp] [Location] [WRN] This is a warning!
}
}