Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ptkdev/logger

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ptkdev/logger - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

7

CHANGELOG.md

@@ -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://img.shields.io/badge/donate-paypal-005EA6.svg?logo=paypal)](https://www.paypal.me/ptkdev) [![](https://img.shields.io/badge/donate-patreon-F87668.svg?logo=patreon)](https://www.patreon.com/ptkdev) [![](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?logo=github)](https://github.com/sponsors/ptkdev/) [![](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?logo=ko-fi)](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 @@ [![Beautiful Logger for Node.js: the best alternative to the console.log statement](https://raw.githubusercontent.com/ptkdev/ptkdev-logger/nightly/.github/assets/ptkdev-logger-logo.png)](https://www.npmjs.com/package/@ptkdev/logger)

[![](https://img.shields.io/badge/version-v1.7.0-lightgrey.svg)](https://github.com/ptkdev/ptkdev-logger/releases) [![](https://img.shields.io/npm/v/@ptkdev/logger.svg)](https://www.npmjs.com/package/@ptkdev/logger) [![](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/ptkdev/ptkdev-logger/blob/master/LICENSE.md) [![](https://img.shields.io/badge/ES-9-F7DF1E.svg)](https://wikipedia.org/wiki/ECMAScript) [![](https://snyk.io/test/github/ptkdev/ptkdev-logger/badge.svg)](https://snyk.io/test/github/ptkdev/ptkdev-logger) [![](https://discordapp.com/api/guilds/383373985666301975/embed.png)](http://discord.ptkdev.io)
[![](https://img.shields.io/badge/version-v1.7.1-lightgrey.svg)](https://github.com/ptkdev/ptkdev-logger/releases) [![](https://img.shields.io/npm/v/@ptkdev/logger.svg)](https://www.npmjs.com/package/@ptkdev/logger) [![](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/ptkdev/ptkdev-logger/blob/master/LICENSE.md) [![](https://img.shields.io/badge/ES-9-F7DF1E.svg)](https://wikipedia.org/wiki/ECMAScript) [![](https://snyk.io/test/github/ptkdev/ptkdev-logger/badge.svg)](https://snyk.io/test/github/ptkdev/ptkdev-logger) [![](https://discordapp.com/api/guilds/383373985666301975/embed.png)](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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc