18 lines
509 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/decorators';
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-30 21:44:04 -07:00
warn(message: string): void { warn(message); }
}