class Logger
package fivem.shared.util
Console logging with a resource prefix, a level filter, and FiveM's
^n colour codes.
Logger.level = Info; // drop Debug output in production
Logger.info("garage", "spawned vehicle", vehicle.handle);
The scope argument is a free-form tag (a subsystem name, usually) that
gets printed between the resource name and the message, so a busy console
stays greppable.
Output goes through Lua's print, which FXServer routes to the server
console or the client's F8 console depending on where it runs.
Static variables
staticlevel:LogLevel = Debug
Messages below this level are discarded. Defaults to Debug (everything).
staticprefix:String
Prefix shown before every message. Defaults to the resource name, which is what makes lines attributable once several Haxe resources are running.