2015-12-05 18:35:03 -07:00
|
|
|
// #docregion
|
|
|
|
import 'dart:html';
|
|
|
|
|
2016-03-25 16:03:53 -07:00
|
|
|
import 'package:angular2/core.dart';
|
2015-12-05 18:35:03 -07:00
|
|
|
|
|
|
|
/// A service for logging messages of various types.
|
|
|
|
///
|
|
|
|
/// We could switch this implementation to use package:logging.
|
|
|
|
@Injectable()
|
|
|
|
class Logger {
|
|
|
|
void log(Object msg) => window.console.log(msg);
|
|
|
|
|
|
|
|
void error(Object msg) => window.console.error(msg);
|
|
|
|
|
|
|
|
void warn(Object msg) => window.console.warn(msg);
|
|
|
|
}
|