Skip to content

Commit

Permalink
feat: add new options levelKey, messageKey, and tagsKey
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleRoss committed Apr 12, 2021
1 parent 95828b1 commit bb5ba70
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/LambdaLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,14 @@ class LambdaLog extends EventEmitter {
dynamicMeta: null,
debug: false,
dev: false,
silent: ![undefined, null, '0', 'no', 'false'].includes(process.env.LAMBDALOG_SILENT),
silent: ['true', 'yes', 'y', '1'].includes(process.env.LAMBDALOG_SILENT),
replacer: null,
logHandler: console, ...options };
logHandler: console,
levelKey: '_logLevel',
messageKey: 'msg',
tagsKey: '_tags',
...options
};

/**
* Global configuration for log levels
Expand Down

0 comments on commit bb5ba70

Please sign in to comment.