2016-06-23 09:47:54 -07:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 12:08:49 -07:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2016-06-23 09:47:54 -07:00
|
|
|
*
|
|
|
|
* 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 18:07:40 -07:00
|
|
|
import {Injectable} from '@angular/core';
|
2016-04-28 17:50:03 -07:00
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class Log {
|
|
|
|
logItems: any[];
|
|
|
|
|
2020-04-13 16:40:21 -07:00
|
|
|
constructor() {
|
|
|
|
this.logItems = [];
|
|
|
|
}
|
2016-04-28 17:50:03 -07:00
|
|
|
|
2020-04-13 16:40:21 -07:00
|
|
|
add(value: any /** TODO #9100 */): void {
|
|
|
|
this.logItems.push(value);
|
|
|
|
}
|
2016-04-28 17:50:03 -07:00
|
|
|
|
2016-06-08 15:45:15 -07:00
|
|
|
fn(value: any /** TODO #9100 */) {
|
2016-04-28 17:50:03 -07:00
|
|
|
return (a1: any = null, a2: any = null, a3: any = null, a4: any = null, a5: any = null) => {
|
|
|
|
this.logItems.push(value);
|
2016-05-26 13:33:53 -07:00
|
|
|
};
|
2016-04-28 17:50:03 -07:00
|
|
|
}
|
|
|
|
|
2020-04-13 16:40:21 -07:00
|
|
|
clear(): void {
|
|
|
|
this.logItems = [];
|
|
|
|
}
|
2016-04-28 17:50:03 -07:00
|
|
|
|
2020-04-13 16:40:21 -07:00
|
|
|
result(): string {
|
|
|
|
return this.logItems.join('; ');
|
|
|
|
}
|
2016-04-28 17:50:03 -07:00
|
|
|
}
|