17 lines
		
	
	
		
			390 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			390 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
// #docregion
 | 
						|
import 'dart:html';
 | 
						|
 | 
						|
import 'package:angular2/angular2.dart';
 | 
						|
 | 
						|
/// 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);
 | 
						|
}
 |