Skip to content

Commit

Permalink
fix(logging): use aurelia-logging
Browse files Browse the repository at this point in the history
use aurelia-logging instead of console.warn
  • Loading branch information
zewa666 committed Jul 22, 2016
1 parent 1937202 commit d2552e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as LogManager from 'aurelia-logging';
import {I18N} from './i18n';

export class NfValueConverter {
Expand All @@ -17,7 +18,8 @@ export class NfValueConverter {
if (nfOrOptions && (typeof nfOrOptions.format === 'function')) {
return nfOrOptions.format(value);
} else if (nf) {
console.warn('This ValueConverter signature is depcrecated and will be removed in future releases. Please use the signature [nfOrOptions, locale]'); // eslint-disable-line no-console
let i18nLogger = LogManager.getLogger('i18n');
i18nLogger.warn('This ValueConverter signature is depcrecated and will be removed in future releases. Please use the signature [nfOrOptions, locale]');
} else {
nf = this.service.nf(nfOrOptions, locale || this.service.getLocale());
}
Expand Down

0 comments on commit d2552e7

Please sign in to comment.