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.1 to 0.0.2

test.js

17

log.js

@@ -11,2 +11,3 @@ var _ = require ( 'lodash' );

fileNameRelativeToThisDir = path.relative ( __dirname, filename.replace ( path.extname ( filename ), '' ) );
module = _.reject ( fileNameRelativeToThisDir.split ( path.sep ), function ( item ) {

@@ -16,2 +17,18 @@ return item === '..';

if ( ! _.isUndefined ( config.loggly ) && ! _.isUndefined ( config.loggly.key ) && ! _.isUndefined ( config.loggly.subdomain ) ) {
log4js.configure ( {
'appenders': [
{
type: 'console'
},
{
type: 'loggly',
token: config.loggly.key,
subdomain: config.loggly.subdomain,
tags: module
}
]
} );
}
logger = log4js.getLogger ( module.join ( '.' ) );

@@ -18,0 +35,0 @@

5

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

@@ -19,4 +19,5 @@ "main": "log.js",

"log4js": "~0.6.14",
"eyes": "~0.1.8"
"eyes": "~0.1.8",
"loggly": "~1.0.4"
}
}
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