@slack/logger
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -46,2 +46,6 @@ /** | ||
/** | ||
* Return the current LogLevel. | ||
*/ | ||
getLevel(): LogLevel; | ||
/** | ||
* This allows the instance to be named so that they can easily be filtered when many loggers are sending output | ||
@@ -67,2 +71,3 @@ * to the same destination. | ||
constructor(); | ||
getLevel(): LogLevel; | ||
/** | ||
@@ -69,0 +74,0 @@ * Sets the instance's log level so that only messages which are equal or more severe are output to the console. |
@@ -21,2 +21,5 @@ "use strict"; | ||
} | ||
getLevel() { | ||
return this.level; | ||
} | ||
/** | ||
@@ -73,2 +76,3 @@ * Sets the instance's log level so that only messages which are equal or more severe are output to the console. | ||
} | ||
exports.ConsoleLogger = ConsoleLogger; | ||
/** Map of labels for each log level */ | ||
@@ -89,3 +93,2 @@ ConsoleLogger.labels = (() => { | ||
}; | ||
exports.ConsoleLogger = ConsoleLogger; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@slack/logger", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Logging utility used by Node Slack SDK", | ||
@@ -33,3 +33,3 @@ "author": "Slack Technologies, Inc.", | ||
"lint": "tslint --project .", | ||
"test": "npm run build && echo \"Tests are not implemented.\" && exit 0" | ||
"test": "npm run build && nyc mocha --config .mocharc.json src/*.spec.js" | ||
}, | ||
@@ -40,3 +40,9 @@ "dependencies": { | ||
"devDependencies": { | ||
"@types/chai": "^4.1.7", | ||
"@types/mocha": "^5.2.6", | ||
"chai": "^4.2.0", | ||
"mocha": "^6.1.4", | ||
"nyc": "^14.1.1", | ||
"shx": "^0.3.2", | ||
"ts-node": "^8.2.0", | ||
"tslint": "^5.13.1", | ||
@@ -46,3 +52,3 @@ "tslint-config-airbnb": "^5.11.1", | ||
}, | ||
"gitHead": "891307eb5f1625f68b72e4c242ba749a7d6cb996" | ||
"gitHead": "8a3f777519718ffb87cbde712f75b8d594255f84" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
11192
189
10