UNPKG

@apstory/logger-angular

Version:
19 lines (18 loc) 1.26 kB
import { LoggerSeverityEnum } from './enum/apstory-logger-severity-enum'; import * as i0 from "@angular/core"; export declare class ApstoryLoggerService { private instrumentationKey; private loggingLevelConsole; private ignoreClientErrors; private appInsights; constructor(instrumentationKey: string, loggingLevelConsole?: number, ignoreClientErrors?: boolean); private loadAppInsights; logTrace(message: string, properties?: any, severityLevel?: any, measurements?: any): Promise<void>; logTraceSeverity(message: string, loggerSeverity: LoggerSeverityEnum): Promise<void>; logPageView(name?: string, uri?: string, measurements?: any, properties?: any, duration?: number, isLoggedIn?: boolean, pageType?: string): Promise<void>; logEvent(name: string, properties?: any, measurements?: any): Promise<void>; logException(exception: Error, handledAt?: string, properties?: any, measurements?: any, severityLevel?: any, id?: string): Promise<void>; setAuthenticatedUserContext(authenticatedUserId: string, accountId?: string, storeInCookie?: boolean): Promise<void>; static ɵfac: i0.ɵɵFactoryDeclaration<ApstoryLoggerService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ApstoryLoggerService>; }