MethodSourceInfo - GibraltarSoftware/Gibraltar.Agent.Web.JavaScript GitHub Wiki

MethodSourceInfo

This object is used by Loupe JavaScript agents to record information about where a message is being logged from.

Definition

The object is very simple:

MethodSourceInfo {
    file;
    method;
    line;
    column
}

Creation

To make it easier to use this the loupe namespace has a constructor function on it allowing you to create a new one by calling new against it providing parameters for the information e.g.

var methodSourceInfo = new loupe.MethodSourceInfo('app.js','init',10,1);