applicationinsights
Version:
Microsoft Application Insights module for Node.js
48 lines (47 loc) • 1.2 kB
TypeScript
export interface AgentLogger {
log(message?: any, ...optional: any[]): void;
error(message?: any, ...optional: any[]): void;
}
export declare const DiagnosticMessageId: {
attachSuccessful: string;
sdkExists: string;
missingIkey: string;
setupAlreadyCalled: string;
prefixFailed: string;
aadEnabled: string;
unknownError: string;
};
export declare const enum SeverityLevel {
ERROR = "ERROR",
WARN = "WARN",
INFO = "INFO"
}
export interface DiagnosticLog {
/**
* UTC
*/
time?: string;
/**
* Log severity, INFO, WARN, ERROR
*/
level?: SeverityLevel;
/**
* The logger writing this message. Usually the fully-qualified class or package name
*/
logger?: string;
/**
* The log message
*/
message: string;
/**
* Exception (as string)
*/
exception?: string;
/**
* Any custom data related to the error/application/operation. Each field should have a string value
* Examples: operation, siteName, ikey, extensionVersion, sdkVersion, subscriptionId
*/
properties: {
[key: string]: string;
};
}