UNPKG

@apstory/logger-angular

Version:

To install this package run `npm i @apstory/logger-angular`.

41 lines (35 loc) 1.96 kB
import * as i0 from '@angular/core'; import { ModuleWithProviders } from '@angular/core'; import * as i1 from '@angular/common'; declare class ApstoryLoggerModule { static forRoot(instrumentationKey: string, loggingLevelConsole: number, ignoreClientErrors?: boolean): ModuleWithProviders<ApstoryLoggerModule>; static ɵfac: i0.ɵɵFactoryDeclaration<ApstoryLoggerModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<ApstoryLoggerModule, never, [typeof i1.CommonModule], never>; static ɵinj: i0.ɵɵInjectorDeclaration<ApstoryLoggerModule>; } declare enum LoggerSeverityEnum { Verbose = 0, Information = 1, Warning = 2, Error = 3, Critical = 4 } 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>; } declare class ClientError extends Error { } export { ApstoryLoggerModule, ApstoryLoggerService, ClientError, LoggerSeverityEnum };