2016-04-28 20:50:03 -04:00
|
|
|
import {Injectable} from '../index';
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class Log {
|
|
|
|
logItems: any[];
|
|
|
|
|
|
|
|
constructor() { this.logItems = []; }
|
|
|
|
|
|
|
|
add(value): void { this.logItems.push(value); }
|
|
|
|
|
|
|
|
fn(value) {
|
|
|
|
return (a1: any = null, a2: any = null, a3: any = null, a4: any = null, a5: any = null) => {
|
|
|
|
this.logItems.push(value);
|
2016-05-26 16:33:53 -04:00
|
|
|
};
|
2016-04-28 20:50:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
clear(): void { this.logItems = []; }
|
|
|
|
|
|
|
|
result(): string { return this.logItems.join("; "); }
|
|
|
|
}
|