diff --git a/logs/logs.mjs b/logs/logs.mjs index 5f9ffba9..48eaf436 100644 --- a/logs/logs.mjs +++ b/logs/logs.mjs @@ -52,7 +52,9 @@ export class Console extends defineCallable(function log(...args){ } _tag = (color, string) => { - return (string ? (chalk.inverse(color(bold(string))) + ' ') : '') + color(this.label) + const tag1 = (string ? (chalk.inverse(color(bold(string))) + (this.label ? ' ' : '')) : '') + const tag2 = (this.label ? color(this.label) : '') + return tag1 + tag2 } get [Symbol.toStringTag]() { diff --git a/logs/package.json b/logs/package.json index a8653dbf..55e91f0c 100644 --- a/logs/package.json +++ b/logs/package.json @@ -1,6 +1,6 @@ { "name": "@hackbg/logs", - "version": "2.3.2", + "version": "2.3.3", "main": "./logs.mjs", "types": "./logs.d.ts", "type": "module",