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

@voliware/logger

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voliware/logger - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

package.json
{
"name": "@voliware/logger",
"version": "1.4.1",
"version": "1.4.2",
"description": "A tiny Javascript logger with levels and several options. Supports Node and all modern Browsers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,2 +11,7 @@ # logger

format: Logger.timestamp.utc
},
output: {
console: true,
// node only
file: './log.txt'
}

@@ -13,0 +18,0 @@ });

@@ -196,3 +196,3 @@ /**

/**
* Append a UTC timestamp.
* Append a locale time timestamp.
* eg "10:43:06 AM"

@@ -241,3 +241,4 @@ * @return {Logger}

/**
* Log a message.
* Log a message. Will do nothing if the current
* log level is greater than the specified one.
* @param {string} message - message to log

@@ -257,3 +258,4 @@ * @param {number} [level=this.options.level] - log level; current level by default

/**
* Log a message.
* Log a message.
* This is the actual log output function.
* @param {string} message - message to log

@@ -260,0 +262,0 @@ * @return {Logger}

@@ -43,3 +43,3 @@ const Logger = require('./logger');

super(name, Object.extend(defaults, options));
if(!this.isNodeEnv){
if(!this.isNodeEnv()){
throw new Error("Not useable in non-node environment");

@@ -46,0 +46,0 @@ }

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