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
|
|
|
import {print, warn} from './facade/lang';
|
|
|
|
|
2015-12-15 11:34:44 -05:00
|
|
|
@Injectable()
|
|
|
|
export class Console {
|
|
|
|
log(message: string): void { print(message); }
|
2016-04-25 22:52:24 -04:00
|
|
|
// Note: for reporting errors use `DOM.logError()` as it is platform specific
|
2016-07-31 00:44:04 -04:00
|
|
|
warn(message: string): void { warn(message); }
|
2016-04-25 22:52:24 -04:00
|
|
|
}
|