Comparing version 0.0.0 to 0.0.1
@@ -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] ); |
{ | ||
"name": "tm-log", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Very simplistic wrapper for log4js", | ||
@@ -5,0 +5,0 @@ "main": "log.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1307
16