Permalink
Browse files

fix(logging): logging using aurelia-logging instead of console

  • Loading branch information...
bas080
bas080 committed Jun 7, 2016
1 parent 1295a52 commit dc4d135919fa4365b39672f260441d38b02e1aab
Showing with 4 additions and 2 deletions.
  1. +1 −0 package.json
  2. +3 −2 src/aurelia-view.js
@@ -71,6 +71,7 @@
},
"dependencies": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@^1.0.0-beta.1.2.3",
"aurelia-logging": "npm:aurelia-logging@^1.0.0-beta.1.2.1",
"aurelia-templating": "npm:aurelia-templating@^1.0.0-beta.1.2.7",
"extend": "npm:extend@^3.0.0"
},
@@ -1,14 +1,15 @@
import {Config} from './config';
import {ViewManager} from './view-manager';
import {resolvedView} from './decorators/resolved-view';
import {LogManager} from 'aurelia-logging';
function configure(aurelia, configCallback) {
if (typeof configCallback === 'function') {
let config = aurelia.container.get(Config);
configCallback(config);
} else {
console.warn('aurelia-form', 'config takes a function');
} else if (configCallback) {
LogManager.getLogger('aurelia-form').warn('config takes a function');
}
}

0 comments on commit dc4d135

Please sign in to comment.