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

tm-log

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

tm-log - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

5

log.js

@@ -11,5 +11,8 @@ var _ = require ( 'lodash' );

fileNameRelativeToThisDir = path.relative ( __dirname, filename.replace ( path.extname ( filename ), '' ) );
module = fileNameRelativeToThisDir.split ( path.sep );
module = _.reject ( fileNameRelativeToThisDir.split ( path.sep ), function ( item ) {
return item === '..';
} );
logger = log4js.getLogger ( module.join ( '.' ) );
logger.setLevel ( _.reduce ( module, function ( logLevel, mPart ) {

@@ -16,0 +19,0 @@ return _.isString ( logLevel ) ? logLevel : ( _.isUndefined ( logLevel[mPart] ) ? 'ERROR' : logLevel[mPart] );

2

package.json
{
"name": "tm-log",
"version": "0.0.0",
"version": "0.0.1",
"description": "Very simplistic wrapper for log4js",

@@ -5,0 +5,0 @@ "main": "log.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