angular-cn/modules/@angular/core/src/console.ts

18 lines
498 B
TypeScript
Raw Normal View History

/**
* @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
*/
import {Injectable} from './di';
import {print, warn} from './facade/lang';
@Injectable()
export class Console {
log(message: string): void { print(message); }
// 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); }
}