Skip to content

Commit

Permalink
chore(all): prepare release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Nov 8, 2016
1 parent 7e51e95 commit 4c1c91c
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 8 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.1.0",
"version": "1.1.1",
"description": "A minimal but effective logging mechanism with support for log levels and pluggable log appenders.",
"keywords": [
"aurelia",
Expand Down
3 changes: 3 additions & 0 deletions dist/amd/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ define(['exports'], function (exports) {
var appenders = [];
var slice = Array.prototype.slice;
var loggerConstructionKey = {};
var globalDefaultLevel = logLevel.none;

function log(logger, level, args) {
var i = appenders.length;
Expand Down Expand Up @@ -77,6 +78,7 @@ define(['exports'], function (exports) {

function createLogger(id) {
var logger = new Logger(id, loggerConstructionKey);
logger.setLevel(globalDefaultLevel);

if (appenders.length) {
connectLogger(logger);
Expand All @@ -100,6 +102,7 @@ define(['exports'], function (exports) {
}

function setLevel(level) {
globalDefaultLevel = level;
for (var key in loggers) {
loggers[key].setLevel(level);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/aurelia-logging.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ export declare class Logger {
error(message: string, ...rest: any[]): void;

/**
* Sets the level of logging this logger
* Sets the level of logging for this logger instance
*
* @param level Matches a value of logLevel specifying the level of logging.
*/
setLevel(level: LogLevel): void;
setLevel(level: number): void;
}
7 changes: 5 additions & 2 deletions dist/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ let loggers = {};
let appenders = [];
let slice = Array.prototype.slice;
let loggerConstructionKey = {};
let globalDefaultLevel = logLevel.none;

function log(logger, level, args) {
let i = appenders.length;
Expand Down Expand Up @@ -95,6 +96,7 @@ function connectLogger(logger) {

function createLogger(id) {
let logger = new Logger(id, loggerConstructionKey);
logger.setLevel(globalDefaultLevel);

if (appenders.length) {
connectLogger(logger);
Expand Down Expand Up @@ -171,6 +173,7 @@ export function addAppender(appender: Appender): void {
* @param level Matches a value of logLevel specifying the level of logging.
*/
export function setLevel(level: number): void {
globalDefaultLevel = level;
for (let key in loggers) {
loggers[key].setLevel(level);
}
Expand Down Expand Up @@ -234,11 +237,11 @@ export class Logger {
error(message: string, ...rest: any[]): void {}

/**
* Sets the level of logging this logger
* Sets the level of logging for this logger instance
*
* @param level Matches a value of logLevel specifying the level of logging.
*/
setLevel(level: LogLevel): void {
setLevel(level: number): void {
this.level = level;
}
}
3 changes: 3 additions & 0 deletions dist/commonjs/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var loggers = {};
var appenders = [];
var slice = Array.prototype.slice;
var loggerConstructionKey = {};
var globalDefaultLevel = logLevel.none;

function log(logger, level, args) {
var i = appenders.length;
Expand Down Expand Up @@ -76,6 +77,7 @@ function connectLogger(logger) {

function createLogger(id) {
var logger = new Logger(id, loggerConstructionKey);
logger.setLevel(globalDefaultLevel);

if (appenders.length) {
connectLogger(logger);
Expand All @@ -99,6 +101,7 @@ function addAppender(appender) {
}

function setLevel(level) {
globalDefaultLevel = level;
for (var key in loggers) {
loggers[key].setLevel(level);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/es2015/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let loggers = {};
let appenders = [];
let slice = Array.prototype.slice;
let loggerConstructionKey = {};
let globalDefaultLevel = logLevel.none;

function log(logger, level, args) {
let i = appenders.length;
Expand Down Expand Up @@ -66,6 +67,7 @@ function connectLogger(logger) {

function createLogger(id) {
let logger = new Logger(id, loggerConstructionKey);
logger.setLevel(globalDefaultLevel);

if (appenders.length) {
connectLogger(logger);
Expand All @@ -89,6 +91,7 @@ export function addAppender(appender) {
}

export function setLevel(level) {
globalDefaultLevel = level;
for (let key in loggers) {
loggers[key].setLevel(level);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/native-modules/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var loggers = {};
var appenders = [];
var slice = Array.prototype.slice;
var loggerConstructionKey = {};
var globalDefaultLevel = logLevel.none;

function log(logger, level, args) {
var i = appenders.length;
Expand Down Expand Up @@ -67,6 +68,7 @@ function connectLogger(logger) {

function createLogger(id) {
var logger = new Logger(id, loggerConstructionKey);
logger.setLevel(globalDefaultLevel);

if (appenders.length) {
connectLogger(logger);
Expand All @@ -90,6 +92,7 @@ export function addAppender(appender) {
}

export function setLevel(level) {
globalDefaultLevel = level;
for (var key in loggers) {
loggers[key].setLevel(level);
}
Expand Down
5 changes: 4 additions & 1 deletion dist/system/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
System.register([], function (_export, _context) {
"use strict";

var logLevel, loggers, appenders, slice, loggerConstructionKey, Logger;
var logLevel, loggers, appenders, slice, loggerConstructionKey, globalDefaultLevel, Logger;



Expand Down Expand Up @@ -61,6 +61,7 @@ System.register([], function (_export, _context) {

function createLogger(id) {
var logger = new Logger(id, loggerConstructionKey);
logger.setLevel(globalDefaultLevel);

if (appenders.length) {
connectLogger(logger);
Expand Down Expand Up @@ -88,6 +89,7 @@ System.register([], function (_export, _context) {
_export('addAppender', addAppender);

function setLevel(level) {
globalDefaultLevel = level;
for (var key in loggers) {
loggers[key].setLevel(level);
}
Expand All @@ -112,6 +114,7 @@ System.register([], function (_export, _context) {
appenders = [];
slice = Array.prototype.slice;
loggerConstructionKey = {};
globalDefaultLevel = logLevel.none;

_export('Logger', Logger = function () {
function Logger(id, key) {
Expand Down
11 changes: 11 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<a name="1.1.1"></a>
## [1.1.1](https://github.com/aurelia/logging/compare/1.1.0...v1.1.1) (2016-11-08)


### Bug Fixes

* **logging:** carry a globalDefaultLevel with which subsequent loggers are created ([ec9af2a](https://github.com/aurelia/logging/commit/ec9af2a))
* **logging:** relax type on Logger.setLevel() for compatibility with TypeScript ([d52bec2](https://github.com/aurelia/logging/commit/d52bec2))



# 1.1.0

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-logging",
"version": "1.1.0",
"version": "1.1.1",
"description": "A minimal but effective logging mechanism with support for log levels and pluggable log appenders.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 4c1c91c

Please sign in to comment.