2016-01-11 07:49:12 -05:00
|
|
|
// #docregion
|
2016-05-03 08:06:32 -04:00
|
|
|
import { Injectable } from '@angular/core';
|
2016-01-11 07:49:12 -05:00
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class Logger {
|
2016-06-07 19:06:25 -04:00
|
|
|
logs: string[] = []; // capture logs for testing
|
2016-06-03 14:16:46 -04:00
|
|
|
|
|
|
|
log(message: string) {
|
2016-01-11 07:49:12 -05:00
|
|
|
this.logs.push(message);
|
|
|
|
console.log(message);
|
|
|
|
}
|
|
|
|
}
|