Skip to content

Commit

Permalink
chore(all): prepare release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jun 12, 2018
1 parent 67e68cc commit fb60e93
Show file tree
Hide file tree
Showing 13 changed files with 9,331 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-logging",
"version": "1.4.0",
"version": "1.5.0",
"description": "A minimal but effective logging mechanism with support for log levels and pluggable log appenders.",
"keywords": [
"aurelia",
Expand Down
4 changes: 4 additions & 0 deletions dist/amd/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ define(['exports'], function (exports) {
this.level = level;
};

Logger.prototype.isDebugEnabled = function isDebugEnabled() {
return this.level === logLevel.debug;
};

return Logger;
}();
});
5 changes: 5 additions & 0 deletions dist/aurelia-logging.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,9 @@ export declare class Logger {
* @param level Matches a value of logLevel specifying the level of logging.
*/
setLevel(level: number): void;

/**
* Returns if the logger is in debug mode or not.
*/
isDebugEnabled(): boolean;
}
7 changes: 7 additions & 0 deletions dist/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,11 @@ export class Logger {
setLevel(level: number): void {
this.level = level;
}

/**
* Returns if the logger is in debug mode or not.
*/
isDebugEnabled(): boolean {
return this.level === logLevel.debug;
}
}
4 changes: 4 additions & 0 deletions dist/commonjs/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,9 @@ var Logger = exports.Logger = function () {
this.level = level;
};

Logger.prototype.isDebugEnabled = function isDebugEnabled() {
return this.level === logLevel.debug;
};

return Logger;
}();
8 changes: 6 additions & 2 deletions dist/es2015/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function clearAppenders() {

export function addCustomLevel(name, value) {
if (logLevel[name] !== undefined) {
throw Error(`Log level "${ name }" already exists.`);
throw Error(`Log level "${name}" already exists.`);
}

if (isNaN(value)) {
Expand All @@ -122,7 +122,7 @@ export function removeCustomLevel(name) {
}

if (isStandardLevel(name)) {
throw Error(`Built-in log level "${ name }" cannot be removed.`);
throw Error(`Built-in log level "${name}" cannot be removed.`);
}

delete logLevel[name];
Expand Down Expand Up @@ -163,4 +163,8 @@ export let Logger = class Logger {
setLevel(level) {
this.level = level;
}

isDebugEnabled() {
return this.level === logLevel.debug;
}
};
4 changes: 4 additions & 0 deletions dist/native-modules/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,9 @@ export var Logger = function () {
this.level = level;
};

Logger.prototype.isDebugEnabled = function isDebugEnabled() {
return this.level === logLevel.debug;
};

return Logger;
}();
4 changes: 4 additions & 0 deletions dist/system/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ System.register([], function (_export, _context) {
this.level = level;
};

Logger.prototype.isDebugEnabled = function isDebugEnabled() {
return this.level === logLevel.debug;
};

return Logger;
}());

Expand Down
2 changes: 1 addition & 1 deletion dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ System.register(['./aurelia-logging'], function (_export, _context) {
var _exportObj = {};

for (var _key in _aureliaLogging) {
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaLogging[_key];
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _aureliaLogging[_key];
}

_export(_exportObj);
Expand Down
10 changes: 10 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="1.5.0"></a>
# [1.5.0](https://github.com/aurelia/logging/compare/1.4.0...1.5.0) (2018-06-12)


### Features

* **logging:** Allow isDebugEnabled to be returned ([9e7d571](https://github.com/aurelia/logging/commit/9e7d571)), closes [#41](https://github.com/aurelia/logging/issues/41)



<a name="1.4.0"></a>
# [1.4.0](https://github.com/aurelia/logging/compare/1.3.1...v1.4.0) (2017-12-20)

Expand Down
2 changes: 1 addition & 1 deletion doc/api.json

Large diffs are not rendered by default.

Loading

0 comments on commit fb60e93

Please sign in to comment.