Skip to content

Commit

Permalink
disable console.trace
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Dec 19, 2018
1 parent 70ca6e3 commit fb001ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ngx-logger",
"version": "3.3.7",
"version": "3.3.8",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down
8 changes: 5 additions & 3 deletions src/lib/logger.service.ts
Expand Up @@ -127,9 +127,11 @@ export class NGXLogger {
case NgxLoggerLevel.INFO:
console.info(`%c${metaString}`, `color:${color}`, message, ...additional);
break;
case NgxLoggerLevel.TRACE:
console.trace(`%c${metaString}`, `color:${color}`, message, ...additional);
break;
// Disabling console.trace since the stack trace is not helpful. it is showing the stack trace of
// the console.trace statement
// case NgxLoggerLevel.TRACE:
// console.trace(`%c${metaString}`, `color:${color}`, message, ...additional);
// break;

// Disabling console.debug, because Has this hidden by default.
// case NgxLoggerLevel.DEBUG:
Expand Down

0 comments on commit fb001ab

Please sign in to comment.