Socket
Socket
Sign inDemoInstall

apiconnect-cli-logger

Package Overview
Dependencies
49
Maintainers
15
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.2.0

12

CHANGES.md

@@ -1,4 +0,14 @@

2016-07-19, Version 1.1.1
2016-08-22, Version 1.2.0
=========================
* Use spec reporter for tests. (Ying Lu)
* Publish to CI registry using travis (Krishna Raman)
* Remove hard coded config directory (Bosco Li)
2016-07-18, Version 1.1.1
=========================
* Update engines to node >=0.12. (Rick Curtis)

@@ -5,0 +15,0 @@

7

logger.js

@@ -16,3 +16,4 @@ // Copyright IBM Corp. 2016. All Rights Reserved.

var configDir = process.env.APIC_CONFIG_PATH || path.resolve(osenv.home(), '.apiconnect');
var dirName = process.env.APIC_CLI_CONFIG_DIR || '.apiconnect';
var configDir = process.env.APIC_CONFIG_PATH || path.resolve(osenv.home(), dirName);
mkdirp.sync(configDir);

@@ -23,6 +24,6 @@

var rotStream = require('logrotate-stream');
var fileName = process.env.APIC_CLI_LOG_FILE || 'apic.log';
// default file logger config
var defaultFileLoggerCfg = {
file: path.join(configDir, 'apic.log'),
file: path.join(configDir, fileName),
size: '50M',

@@ -29,0 +30,0 @@ keep: 10,

{
"name": "apiconnect-cli-logger",
"version": "1.1.1",
"version": "1.2.0",
"description": "Common logger for API Connect Toolkit CLI",

@@ -8,3 +8,3 @@ "main": "logger.js",

"pretest": "eslint --ignore-path .gitignore .",
"test": "tap --bail --timeout=1000 ./test/test-*"
"test": "tap --bail --timeout=1000 --reporter=spec ./test/test-*"
},

@@ -11,0 +11,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc