Repository URL to install this package:
|
Version:
1.3.1-1468329898 ▾
|
code
/
usr
/
share
/
code
/
resources
/
app
/
node_modules
/
applicationinsights
/
AutoCollection
/
Console.js
|
|---|
var AutoCollectConsole = (function () {
function AutoCollectConsole(client) {
if (!!AutoCollectConsole.INSTANCE) {
throw new Error("Console logging adapter tracking should be configured from the applicationInsights object");
}
this._client = client;
AutoCollectConsole.INSTANCE = this;
}
AutoCollectConsole.prototype.enable = function (isEnabled) {
// todo: investigate feasibility/utility of this; does it make sense to have a logging adapter in node?
};
AutoCollectConsole.prototype.isInitialized = function () {
return this._isInitialized;
};
AutoCollectConsole._methodNames = ["debug", "info", "log", "warn", "error"];
return AutoCollectConsole;
})();
module.exports = AutoCollectConsole;