@youpaichris/logger 6.2.0 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -93,7 +93,7 @@ const consoleStyles = {
|
|
93
93
|
'cyan': ['\x1B[36m', '\x1B[39m'],
|
94
94
|
'green': ['\x1B[32m', '\x1B[39m'],
|
95
95
|
'magenta': ['\x1B[35m', '\x1B[39m'],
|
96
|
-
'red': ['\x1B[
|
96
|
+
'red': ['\x1B[91m', '\x1B[39m'],
|
97
97
|
'yellow': ['\x1B[33m', '\x1B[39m'],
|
98
98
|
'whiteBG': ['\x1B[47m', '\x1B[49m'],
|
99
99
|
'greyBG': ['\x1B[49;5;8m', '\x1B[49m'],
|
@@ -165,8 +165,8 @@ class Logger {
|
|
165
165
|
let pathLine = this?.path ? `[${this.path}:${__line}]` : "Anonymous";
|
166
166
|
loggerConfig.log(consoleStyles['green'][0] + dateFormat("YYYY-mm-dd HH:MM:SS.ms", new loggerConfig.Date()),
|
167
167
|
consoleStyles['red'][0] + consoleStyles['bold'][0] + "| " +
|
168
|
-
|
169
|
-
consoleStyles['blue'][0], ` ${pathLine.padEnd(this?.path ? this.path.length + 6 : 22, " ")}${consoleStyles['blue'][0]}📢`, consoleStyles['
|
168
|
+
`\x1b[0m${consoleStyles['bold'][0]}` + "INFO " + consoleStyles['red'][0] + " |" +
|
169
|
+
consoleStyles['blue'][0], ` ${pathLine.padEnd(this?.path ? this.path.length + 6 : 22, " ")}${consoleStyles['blue'][0]}📢`, `\x1b[0m${consoleStyles['bold'][0]}`,
|
170
170
|
...msg,
|
171
171
|
consoleStyles['blue'][1] + consoleStyles['bold'][1] + '\b'
|
172
172
|
);
|