diff --git a/src/consola.ts b/src/consola.ts index 7e240eb9..8b127a0f 100644 --- a/src/consola.ts +++ b/src/consola.ts @@ -296,11 +296,11 @@ export class Consola { delete logObj.additional; } - // Normalize type and tag to lowercase + // Normalize type to lowercase logObj.type = ( typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log" ) as LogType; - logObj.tag = typeof logObj.tag === "string" ? logObj.tag.toLowerCase() : ""; + logObj.tag = typeof logObj.tag === "string" ? logObj.tag : ""; // Resolve log /**