2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-09-12 12:44:20 -04:00
|
|
|
import {Injectable} from './di';
|
2016-06-08 19:38:52 -04:00
|
|
|
|
2015-12-15 11:34:44 -05:00
|
|
|
@Injectable()
|
|
|
|
export class Console {
|
2017-03-02 12:37:01 -05:00
|
|
|
log(message: string): void {
|
|
|
|
// tslint:disable-next-line:no-console
|
|
|
|
console.log(message);
|
|
|
|
}
|
2016-04-25 22:52:24 -04:00
|
|
|
// Note: for reporting errors use `DOM.logError()` as it is platform specific
|
2017-03-02 12:37:01 -05:00
|
|
|
warn(message: string): void {
|
|
|
|
// tslint:disable-next-line:no-console
|
|
|
|
console.warn(message);
|
|
|
|
}
|
2016-04-25 22:52:24 -04:00
|
|
|
}
|