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