2016-02-06 17:02:44 -05:00
|
|
|
// #docregion
|
|
|
|
import 'package:angular2/core.dart';
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
class Logger {
|
2016-06-03 11:16:46 -07:00
|
|
|
List<String> _logs = [];
|
|
|
|
List<String> get logs => _logs;
|
2016-02-06 17:02:44 -05:00
|
|
|
|
|
|
|
void log(String message) {
|
2016-06-03 11:16:46 -07:00
|
|
|
_logs.add(message);
|
2016-02-06 17:02:44 -05:00
|
|
|
print(message);
|
|
|
|
}
|
|
|
|
}
|