@ngx-smz/core 19.3.4 → 19.3.5
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.
|
@@ -247,6 +247,16 @@ class LoggingService {
|
|
|
247
247
|
return;
|
|
248
248
|
console.debug(message, ...optionalParams);
|
|
249
249
|
}
|
|
250
|
+
groupCollapsed(label) {
|
|
251
|
+
if (!this.enabled())
|
|
252
|
+
return;
|
|
253
|
+
console.groupCollapsed(label);
|
|
254
|
+
}
|
|
255
|
+
groupEnd() {
|
|
256
|
+
if (!this.enabled())
|
|
257
|
+
return;
|
|
258
|
+
console.groupEnd();
|
|
259
|
+
}
|
|
250
260
|
/**
|
|
251
261
|
* Retorna um logger com prefixo [owner] e restringe pelos scopes do config
|
|
252
262
|
* owner agora é um LoggingScope
|
|
@@ -273,6 +283,16 @@ class LoggingService {
|
|
|
273
283
|
if (!this.shouldLog('debug', owner))
|
|
274
284
|
return;
|
|
275
285
|
console.debug(prefix, msg, ...params);
|
|
286
|
+
},
|
|
287
|
+
groupCollapsed: (label) => {
|
|
288
|
+
if (!this.shouldLog('info', owner))
|
|
289
|
+
return;
|
|
290
|
+
console.groupCollapsed(prefix, label);
|
|
291
|
+
},
|
|
292
|
+
groupEnd: () => {
|
|
293
|
+
if (!this.shouldLog('info', owner))
|
|
294
|
+
return;
|
|
295
|
+
console.groupEnd();
|
|
276
296
|
}
|
|
277
297
|
};
|
|
278
298
|
}
|