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