import { ApplicationInsights } from '@microsoft/applicationinsights-web'; import { TraceEvent } from '../../enums/traceEvent'; import { ILogger } from './iLogger'; import { Settings } from '../../models'; /** * Appinsights logger. Stops logging for locally hosted files as file path might contain user info. */ export declare class AppInsightsLogger implements ILogger { appInsights: ApplicationInsights | null; settings: Settings; constructor(settings: Settings); private createLogger; private skipTelemetry; /** * Trace event method * @param event event name * @param properties properties to log along with the event. */ trace: (event: TraceEvent, properties?: { [key: string]: string; } | undefined, appName?: string | undefined) => void; /** * Tracing error * @param event event name * @param error Error to trace. */ traceError: (event: TraceEvent, error: any, appName?: string | undefined) => void; }