jet-logger 1.2.5 → 1.2.6

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.
Files changed (2) hide show
  1. package/lib/JetLogger.js +4 -4
  2. package/package.json +1 -1
package/lib/JetLogger.js CHANGED
@@ -134,7 +134,10 @@ function printLog(content, printFull, level, settings) {
134
134
  if (mode === LoggerModes.Off) {
135
135
  return;
136
136
  }
137
- else if (mode === LoggerModes.Custom) {
137
+ if (printFull) {
138
+ content = util_1.default.inspect(content);
139
+ }
140
+ if (mode === LoggerModes.Custom) {
138
141
  if (!!customLogger) {
139
142
  return customLogger(new Date(), level.prefix, content);
140
143
  }
@@ -142,9 +145,6 @@ function printLog(content, printFull, level, settings) {
142
145
  throw Error(errors.customLoggerErr);
143
146
  }
144
147
  }
145
- if (printFull) {
146
- content = util_1.default.inspect(content);
147
- }
148
148
  if (format === Formats.Line) {
149
149
  content = setupLineFormat(content, timestamp, level);
150
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jet-logger",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "A super quick, easy to setup logging tool for NodeJS/TypeScript.",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",