This is a very simple way to get your logs prefixed, so you can easily know which messages belong to your scripts.
Add to your classes using import {Logger} from "./logger";
or remove export
and include the class in your main script.
Call Logger.log()
as you previously called console.log
. No matter the amount of parameters or their format.
warn
, error
and info
methods are already supported.