2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-08-30 21:07:40 -04:00
|
|
|
import {Injectable} from '@angular/core';
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class Log {
|
|
|
|
logItems: any[];
|
|
|
|
|
|
|
|
constructor() { this.logItems = []; }
|
|
|
|
|
2016-06-08 18:45:15 -04:00
|
|
|
add(value: any /** TODO #9100 */): void { this.logItems.push(value); }
|
2016-04-28 20:50:03 -04:00
|
|
|
|
2016-06-08 18:45:15 -04:00
|
|
|
fn(value: any /** TODO #9100 */) {
|
2016-04-28 20:50:03 -04:00
|
|
|
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 = []; }
|
|
|
|
|
2016-06-08 19:38:52 -04:00
|
|
|
result(): string { return this.logItems.join('; '); }
|
2016-04-28 20:50:03 -04:00
|
|
|
}
|