@transcommerce/cwm-shared 1.1.58 → 1.1.60

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.
@@ -214,11 +214,13 @@ class ClassLoggerService {
214
214
  }
215
215
  else {
216
216
  this.callStack.push(value);
217
- if (this.collapseGroups)
218
- console.groupCollapsed(this.targetName);
219
- else
220
- console.group(this.targetName);
221
- console.time(this.targetName);
217
+ if (this.logLevel === 'Debug' || this.logLevel === 'Trace') {
218
+ if (this.collapseGroups)
219
+ console.groupCollapsed(this.targetName);
220
+ else
221
+ console.group(this.targetName);
222
+ console.time(this.targetName);
223
+ }
222
224
  this.trace("Start of method");
223
225
  }
224
226
  }
@@ -228,8 +230,10 @@ class ClassLoggerService {
228
230
  */
229
231
  endOfMethod() {
230
232
  this.trace("End of method");
231
- console.groupEnd();
232
- console.timeEnd(this.targetName);
233
+ if (this.logLevel === 'Debug' || this.logLevel === 'Trace') {
234
+ console.groupEnd();
235
+ console.timeEnd(this.targetName);
236
+ }
233
237
  this.callStack.pop();
234
238
  }
235
239
  /*