本文整理匯總了TypeScript中@alfresco/adf-core.LogService類的典型用法代碼示例。如果您正苦於以下問題:TypeScript LogService類的具體用法?TypeScript LogService怎麽用?TypeScript LogService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了LogService類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: constructor
constructor(private documentList: DocumentListComponent, private logService: LogService ) {
this.logService.log('ContentColumnListComponent is deprecated starting with 1.7.0 and may be removed in future versions. Use DataColumnListComponent instead.');
}
示例2: handleError
private handleError(error: any) {
this.logService.error(error);
return throwError(error || 'Server error');
}
示例3: map
map(() => {
this.logService.info('delete');
}),
示例4: onSearchUserError
private onSearchUserError(): Observable<UserProcessModel[]> {
this.logService.error('getWorkflowUsers threw error');
return of([]);
}
示例5: onError
onError(error: string) {
this.logService.log(error);
}
示例6:
(err: any) => {
this.logService.error(err);
});