consoleListener.js
Added
var logJSONText = JSON.stringify(object, null);
and
msg: logJSONText,
This sends the logging line with all the parameters in the logging line to the server url.
Previously the logging line came with its text only and without and parameters in the text line.
Can you please make a new improved version of consoleExporter with these changes?
Thanks.
Regards,
Babygiraffe.
/* See license.txt for terms of usage */
FBL.ns(function() { with (FBL) {
// ****
// Constants
const Cc = Components.classes;
const Ci = Components.interfaces;
// ****
// Module implementation
/**
This object represents Console panel listener that listens for Console panel logs
and uses {@link Firebug.ConsoleExport.Uploader} to upload them to a specified server.
/
Firebug.ConsoleExport.Listener =
/* @lends Firebug.ConsoleExport.Listener */
{
registered: false,
register: function()
{
if (!this.registered)
{
Firebug.Console.addListener(this);
Firebug.Profiler.addListener(this);
}
},
unregister: function()
{
if (this.registered)
{
Firebug.Console.removeListener(this);
Firebug.Profiler.removeListener(this);
}
},
consoleListener.js Added var logJSONText = JSON.stringify(object, null); and msg: logJSONText, This sends the logging line with all the parameters in the logging line to the server url. Previously the logging line came with its text only and without and parameters in the text line. Can you please make a new improved version of consoleExporter with these changes? Thanks. Regards, Babygiraffe.
/* See license.txt for terms of usage */
FBL.ns(function() { with (FBL) {
// **** // Constants
const Cc = Components.classes; const Ci = Components.interfaces;
// **** // Module implementation
/**
and uses {@link Firebug.ConsoleExport.Uploader} to upload them to a specified server. / Firebug.ConsoleExport.Listener = /* @lends Firebug.ConsoleExport.Listener */ { registered: false,
register: function() { if (!this.registered) { Firebug.Console.addListener(this); Firebug.Profiler.addListener(this); } },
unregister: function() { if (this.registered) { Firebug.Console.removeListener(this); Firebug.Profiler.removeListener(this); } },
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Console listener
log: function(context, object, className, sourceLink) { object = unwrapObject(object); var logJSONText = JSON.stringify(object, null); if (FBTrace.DBG_CONSOLEEXPORT) FBTrace.sysout("consoleexport.Console.Listener.log; " + className, object);
},
logFormatted: function(context, objects, className, sourceLink) { objects = unwrapObject(objects); var logJSONText = JSON.stringify(objects, null); if (FBTrace.DBG_CONSOLEEXPORT) FBTrace.sysout("consoleexport.Console.Listener.logFormatted; " + className, objects[0]);
},
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Firebug Profiler listener
startProfiling: function(context, title) { if (FBTrace.DBG_CONSOLEEXPORT) FBTrace.sysout("consoleexport.Console.Listener.startProfiling; " + title);
},
stopProfiling: function(context, title, results, canceled) { if (FBTrace.DBG_CONSOLEEXPORT) FBTrace.sysout("consoleexport.Console.Listener.stopProfiling; " + title + (canceled ? " (canceled)" : ""), results);
}, };
// **** }});