syntex-logger
Advanced tools
Comparing version 1.0.8-b12 to 1.0.8-b14
14
main.js
@@ -57,11 +57,11 @@ let LanguageSwitcher = require('./language_manager'); | ||
{ | ||
constructor(pluginName, debug, language) | ||
constructor(platform) | ||
{ | ||
logger = this; | ||
this.LanguageSwitcher = new LanguageSwitcher(language || 'en'); | ||
this.LanguageSwitcher = new LanguageSwitcher(platform.language || 'en'); | ||
this.logLevel = 'success'; | ||
if(debug) | ||
if(platform.debug) | ||
{ | ||
@@ -71,5 +71,5 @@ this.logLevel = 'debug'; | ||
if(pluginName != null) | ||
if(platform.pluginName != null) | ||
{ | ||
this.pluginName = pluginName; | ||
this.pluginName = platform.pluginName; | ||
} | ||
@@ -219,3 +219,3 @@ else | ||
data = data.toString(); | ||
data = data.replace(/\"/g, "'"); | ||
data = data.replace(/"/g, "'"); | ||
@@ -266,3 +266,3 @@ var parts = data.split('#\n'); | ||
{ | ||
for(var i = 0; i < (message.match(/\%/g) || []).length; i+=2) | ||
for(var i = 0; i < (message.match(/%/g) || []).length; i += 2) | ||
{ | ||
@@ -269,0 +269,0 @@ var param = message.split('%')[i + 1].split('%')[0]; |
{ | ||
"name": "syntex-logger", | ||
"version": "1.0.8-b12", | ||
"version": "1.0.8-b14", | ||
"description": "A Basic Logging System", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -16,8 +16,5 @@ # SynTex Logger | ||
var pluginName = 'Demo Plugin', | ||
logStoragePath = '/var/demo_plugin/logs', | ||
debug = true, | ||
language = 'us'; | ||
let logger = new Logger({ pluginName : 'Demo Plugin', language : 'us', debug : true }); | ||
let logger = new Logger(pluginName, logStoragePath, debug, language); | ||
logger.setLogDirectory('/var/demo_plugin/logs'); | ||
@@ -24,0 +21,0 @@ var level = 'success', |
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
27636
63