@ptkdev/logger
Advanced tools
Comparing version
@@ -1,3 +0,3 @@ | ||
# v1.7.0 (August 05, 2020) | ||
* Feature: typescript typization (Thanks: Giovanni Cardamone) | ||
# v1.7.1 (August 19, 2020) | ||
* Fix: Typescript typization issues (#7) | ||
@@ -7,2 +7,5 @@ [](https://www.paypal.me/ptkdev) [](https://www.patreon.com/ptkdev) [](https://github.com/sponsors/ptkdev/) [](https://ko-fi.com/ptkdev) | ||
# v1.7.0 (August 05, 2020) | ||
* Feature: typescript typization (Thanks: Giovanni Cardamone) | ||
# v1.6.0 (May 24, 2020) | ||
@@ -9,0 +12,0 @@ * Fix: info color (default palette) changed from #2ECC71 to #4CAF50 |
@@ -47,14 +47,86 @@ declare module "@ptkdev/logger" { | ||
debug?(message: string, tag?: string): void; | ||
info?(message: string, tag?: string): void; | ||
warning?(message: string, tag?: string): void; | ||
error?(message: string, tag?: string): void; | ||
sponsor?(message: string, tag?: string): void; | ||
stackoverflow?( | ||
/** | ||
* Logging of the debug message | ||
* ===================== | ||
* This method show message on terminal and/or write message on file/json | ||
* | ||
* @param {string} message - description of issue (mandatory) | ||
* @param {string} tag - func unique tag (optional) | ||
* | ||
*/ | ||
debug(message: string, tag?: string): void; | ||
/** | ||
* Logging of the info message | ||
* ===================== | ||
* This method show message on terminal and/or write message on file/json | ||
* | ||
* @param {string} message - description of issue (mandatory) | ||
* @param {string} tag - func unique tag (optional) | ||
* | ||
*/ | ||
info(message: string, tag?: string): void; | ||
/** | ||
* Logging of the warning message | ||
* ===================== | ||
* This method show message on terminal and/or write message on file/json | ||
* | ||
* @param {string} message - description of issue (mandatory) | ||
* @param {string} tag - func unique tag (optional) | ||
* | ||
*/ | ||
warning(message: string, tag?: string): void; | ||
/** | ||
* Logging of the error message | ||
* ===================== | ||
* This method show message on terminal and/or write message on file/json | ||
* | ||
* @param {string} message - description of issue (mandatory) | ||
* @param {string} tag - func unique tag (optional) | ||
* | ||
*/ | ||
error(message: string, tag?: string): void; | ||
/** | ||
* Logging of the sponsor message | ||
* ===================== | ||
* This method show message on terminal and/or write message on file/json | ||
* | ||
* @param {string} message - description of issue (mandatory) | ||
* @param {string} tag - func unique tag (optional) | ||
* | ||
*/ | ||
sponsor(message: string, tag?: string): void; | ||
/** | ||
* Logging of the stackoverflow message | ||
* ===================== | ||
* This method show message on terminal and/or write message on file/json | ||
* | ||
* @param {string} message - description of issue (mandatory) | ||
* @param {string} tag - func unique tag (optional) | ||
* @param {string} error_message - error message to stackoverflow (optional) | ||
* | ||
*/ | ||
stackoverflow( | ||
message: string, | ||
tag?: string, | ||
error_string?: string | ||
error_message?: string | ||
): void; | ||
docs?(message: string, url?: string, tag?: string): void; | ||
/** | ||
* Logging of the docs message | ||
* ===================== | ||
* This method show message on terminal and/or write message on file/json | ||
* | ||
* @param {string} message - description of issue (mandatory) | ||
* @param {string} url - url of documentation (optional) | ||
* @param {string} tag - func unique tag (optional) | ||
* | ||
* | ||
*/ | ||
docs(message: string, url?: string, tag?: string): void; | ||
} | ||
} |
@@ -364,4 +364,4 @@ /** | ||
* @param {string} message - description of issue (mandatory) | ||
* @param {string} url - url of documentation (optional) | ||
* @param {string} tag - func unique tag (optional) | ||
* @param {string} url - url of documentation (optional) | ||
* | ||
@@ -368,0 +368,0 @@ */ |
{ | ||
"name": "@ptkdev/logger", | ||
"description": "Beautiful Logger for Node.js: the best alternative to the console.log statement", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"main": "modules/logger.js", | ||
@@ -50,3 +50,4 @@ "author": "Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev)", | ||
"pino-logger", | ||
"pino" | ||
"pino", | ||
"typescript" | ||
], | ||
@@ -83,2 +84,2 @@ "engines": { | ||
] | ||
} | ||
} |
@@ -5,3 +5,3 @@ [](https://www.npmjs.com/package/@ptkdev/logger) | ||
[](https://github.com/ptkdev/ptkdev-logger/releases) [](https://www.npmjs.com/package/@ptkdev/logger) [](https://github.com/ptkdev/ptkdev-logger/blob/master/LICENSE.md) [](https://wikipedia.org/wiki/ECMAScript) [](https://snyk.io/test/github/ptkdev/ptkdev-logger) [](http://discord.ptkdev.io) | ||
[](https://github.com/ptkdev/ptkdev-logger/releases) [](https://www.npmjs.com/package/@ptkdev/logger) [](https://github.com/ptkdev/ptkdev-logger/blob/master/LICENSE.md) [](https://wikipedia.org/wiki/ECMAScript) [](https://snyk.io/test/github/ptkdev/ptkdev-logger) [](http://discord.ptkdev.io) | ||
@@ -36,2 +36,3 @@ > The best alternative to the console.log statement | ||
* [✔️] Logrotate 🤹♂️ | ||
* [✔️] Typescript support | ||
* [✔️] The best alternative to the console.log statement | ||
@@ -213,7 +214,7 @@ * [✔️] Write stdout logs to file (supported format: text/log and json) | ||
<td align="center"><a href="https://github.com/Syltech"><img src="https://avatars1.githubusercontent.com/u/3882925?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sylvain Téchené</b></sub></a><br /><a href="#translation-Syltech" title="Translation">🌍</a></td> | ||
<td align="center"><img src="https://avatars.githubusercontent.com/giovannicardamone?s=100" width="100px;" alt=""/><br /><sub><b>Giovanni Cardamone</b></sub><br /><a href="https://github.com/ptkdev/ptkdev-logger/commits?author=GiovanniCardamone" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/giovannicardamone"><img src="https://avatars1.githubusercontent.com/u/5117748?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Giovanni Cardamone</b></sub></a><br /><a href="https://github.com/ptkdev/ptkdev-logger/commits?author=GiovanniCardamone" title="Code">💻</a></td> | ||
</tr> | ||
</table> | ||
<!-- markdownlint-enable --> | ||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
@@ -220,0 +221,0 @@ <!-- ALL-CONTRIBUTORS-LIST:END --> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
55197
6.63%765
9.44%242
0.41%