winston-appinsights-transport
Advanced tools
Comparing version 0.1.5 to 0.1.6
# ApplicationInsights Winstron Transport | ||
## 0.1.6 | ||
- expose request log api | ||
## 0.1.5 | ||
@@ -4,0 +7,0 @@ - deactivate uncaughtExceptionHandler |
@@ -10,2 +10,10 @@ import * as TransportStream from 'winston-transport'; | ||
} | ||
export interface AppInsightsRequest { | ||
name: string; | ||
url: string; | ||
source?: string; | ||
duration: number; | ||
resultCode: string | number; | ||
success: boolean; | ||
} | ||
export declare enum Levels { | ||
@@ -25,2 +33,3 @@ fatal = 0, | ||
log({message, level, ...properties}: TransportStream.TransportLogInfo, callback: Function): any; | ||
request(req: AppInsightsRequest, properties: AppInsightsCustomFields): void; | ||
} |
@@ -62,3 +62,3 @@ "use strict"; | ||
}; | ||
//process.on('uncaughtException', unhandledError); // hack to fix the crashes... | ||
process.on('uncaughtException', unhandledError); | ||
process.on('unhandledRejection', unhandledError); | ||
@@ -83,4 +83,7 @@ } | ||
} | ||
request(req, properties) { | ||
this.client.trackRequest(Object.assign({}, req, { properties: Object.assign({}, properties, this.customFields) })); | ||
} | ||
} | ||
exports.AppInsightsTransport = AppInsightsTransport; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "winston-appinsights-transport", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A winston transport for Application Insights", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9962
122