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

hf-node-logger

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hf-node-logger - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

12

logger.js
module.exports = function(level, stdOut, errOut){
module.exports = function(options){
var DEBUG = 'debug'

@@ -22,8 +22,10 @@ var INFO = 'info';

stdOut = stdOut || console.log;
errOut = errOut || console.error;
level = level || DEBUG;
stdOut = options.stdOut || console.log;
errOut = options.errOut || console.error;
level = options.level || DEBUG;
name = options.name || 'AppLog';
var log = function(level, message){
message = 'AppLog | '+level+': '+message;
var timestamp = new Date();
message = timestamp+' | 'name+' | '+level+' | '+message;

@@ -30,0 +32,0 @@ if(level === INFO || level === WARNING){

{
"name": "hf-node-logger",
"version": "1.1.0",
"version": "1.1.1",
"description": "A logger module with loglevels",

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

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