New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gracelog

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gracelog - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

LICENSE

20

CHANGELOG.md
# Change log
## Version 0.1.6
## Added
None
## Changed
#### Minor performance improvements
## Deprecated
None
## Removed
None
***
## Version 0.1.5

@@ -4,0 +24,0 @@

19

logger.js

@@ -105,3 +105,3 @@ var async = require('async');

// if there is no config
if (!this.config || !Object.keys(this.config).length || !this.config.level) {
if (!this.config || !this.config.level) {
// no configurations for log module at all -> fall back to console

@@ -123,6 +123,15 @@ if (levelName === 'error' || levelName === 'fatal') {

if (this.config.console) {
if (levelName === 'error') {
console.error(logMsg.message);
} else {
console.log(logMsg.message);
switch (levelName) {
case 'error':
case 'fatal':
console.error(logMsg.message);
break;
case 'warn':
case 'warning':
console.warn(logMsg.message);
break;
default:
console.log(logMsg.message);
break;
}

@@ -129,0 +138,0 @@ }

{
"name": "gracelog",
"description": "Log management module",
"version": "0.1.5",
"version": "0.1.6",
"author": "Nobuyori Takahashi <voltrue2@yahoo.com>",

@@ -6,0 +6,0 @@ "repository": {

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