2023.07.08

This commit is contained in:
killerboss 2023-07-08 16:15:00 +02:00
parent da6997f0ab
commit f504f4a612
2 changed files with 11 additions and 11 deletions

View file

@ -1,6 +1,6 @@
{
"name": "node-cout",
"version": "2023.06.22",
"version": "2023.07.08",
"description": "Standard output module for JavaScript / TypeScript",
"main": "build/index.js",
"types": "build/index.d.ts",

View file

@ -75,25 +75,25 @@ export class cout {
})
}
debug(string: string, level?: number) {
debug(string: any, level?: number) {
if (this.debugLevel >= (level || 0)) {
this.l(string, "DEBUG")
this.l(String(string), "DEBUG")
}
}
log(string: string) {
this.l(string, "LOG");
log(string: any) {
this.l(String(string), "LOG");
}
info(string: string) {
this.l(string, "INFO");
info(string: any) {
this.l(String(string), "INFO");
}
warn(string: string) {
this.l(string, "WARN");
warn(string: any) {
this.l(String(string), "WARN");
}
error(string: string) {
this.l(string, "ERROR");
error(string: any) {
this.l(String(string), "ERROR");
}
}