Skip to content

Commit

Permalink
Fix missing logger methods
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 2, 2024
1 parent 3a2a516 commit 4197f09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Luis Blanco <[email protected]>",
"name": "addon-tools-raub",
"version": "9.1.0",
"version": "9.1.1",
"description": "Helpers for Node.js addons and dependency packages",
"license": "MIT",
"main": "index.js",
Expand Down
5 changes: 5 additions & 0 deletions utils/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ const createLogger = (opts) => {
return prev;
}
const newLogger = {
debug: console.debug,
log: console.log,
info: console.info,
warn: console.warn,
error: console.error,
replace: (level, fn) => {
if (levelIdx[level]) {
newLogger[level] = _wrapOutput(fn || console.log, level);
Expand Down

0 comments on commit 4197f09

Please sign in to comment.