@simplism/core
Advanced tools
Comparing version 10.3.66 to 10.3.68
{ | ||
"name": "@simplism/core", | ||
"version": "10.3.66", | ||
"version": "10.3.68", | ||
"description": "Simplism Core Package", | ||
@@ -5,0 +5,0 @@ "repository": "github:kslhunter/simplism", |
@@ -173,7 +173,20 @@ import {DateTime} from "../type/DateTime"; | ||
if (this.config.consoleLogSeverities.includes(severity)) { | ||
const text = `${this.config.color.grey}[${log.now}] ${log.group}\t${this.config.color[severity]}${log.severity.padEnd(5, " ")}\t${log.prefix ? Logger._prefixColorMap.get(log.prefix) + log.prefix + " " : ""}${this.config.color.log}${convertedLogs.join("\r\n")}${this.config.color.log}`; | ||
const c = !process.versions.node ? "%c" : "%s"; | ||
const logText = typeof convertedLogs[0] === "string" ? convertedLogs[0] : ""; | ||
const logData = typeof convertedLogs[0] === "string" ? convertedLogs.slice(1) : convertedLogs; | ||
// const text = `${this.config.color.grey}[${log.now}] ${log.group}\t${this.config.color[severity]}${log.severity.padEnd(5, " ")}\t${log.prefix ? Logger._prefixColorMap.get(log.prefix) + log.prefix + " " : ""}${this.config.color.log}${convertedLogs.join("\r\n")}${this.config.color.log}`; | ||
const text = `${c}[${log.now}] ${log.group}\t${c}${log.severity.padEnd(5, " ")}\t${log.prefix ? c + log.prefix + " " : ""}${c}${logText}${c}`; | ||
// 콘솔 출력 | ||
if (this.config.consoleLogSeverities.includes(severity)) { | ||
console.log(text); | ||
console.log( | ||
text, | ||
this.config.color.grey, | ||
this.config.color[severity], | ||
...log.prefix ? [Logger._prefixColorMap.get(log.prefix)] : [], | ||
this.config.color.log, | ||
this.config.color.log, | ||
...logData | ||
); | ||
} | ||
@@ -180,0 +193,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237591
3346