@poap-xyz/poap-logger
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -50,3 +50,6 @@ "use strict"; | ||
silent(setSilent) { | ||
this.logger.silent = setSilent; | ||
this.logger.transports && | ||
this.logger.transports.forEach(transport => { | ||
transport.silent = setSilent; | ||
}); | ||
} | ||
@@ -53,0 +56,0 @@ } |
{ | ||
"name": "@poap-xyz/poap-logger", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A logger for POAP", | ||
@@ -20,7 +20,11 @@ "main": "dist/src/index.js", | ||
"keywords": [], | ||
"author": "Eduardo Sacco <saccoeduardo@gmail.com>", | ||
"author": "Eduardo Sacco <eduardo@poap.io>", | ||
"contributors": [ | ||
{ | ||
"name": "Ignacio Negro Caino", | ||
"email": "ignacionegrocaino@gmail.com" | ||
"email": "nacho@poap.io" | ||
}, | ||
{ | ||
"name": "Agustin Lavarello", | ||
"email": "agus@poap.io" | ||
} | ||
@@ -48,2 +52,3 @@ ], | ||
"@types/sinon": "^10.0.6", | ||
"@types/test-console": "^2.0.0", | ||
"chai": "^4.3.4", | ||
@@ -54,5 +59,6 @@ "gts": "^3.1.0", | ||
"sinon": "^12.0.0", | ||
"typescript": "~4.4.2", | ||
"ts-node": "9.1.1" | ||
"test-console": "^2.0.0", | ||
"ts-node": "9.1.1", | ||
"typescript": "~4.4.2" | ||
} | ||
} |
@@ -35,2 +35,10 @@ # 💻 POAP - Logger📜 | ||
``` | ||
You can also use `getLoggerInstance` which will get a logger instance if one is already created or create a new one if not. | ||
```javascript | ||
PoapLoggerFactory.getLoggerInstance({ | ||
metadata: {/*METADATA*/} | ||
}); | ||
``` | ||
### Child Loggers | ||
@@ -96,2 +104,2 @@ Create a child logger to override or combine parent child metadata: | ||
## License | ||
MIT © **[`POAP`](https://poap.xyz)** | ||
MIT © **[`POAP`](https://poap.xyz)** |
Sorry, the diff of this file is not supported yet
16156
212
104
14