CEIP.startLog Member

Internal.

Syntax

object.startLog();

Returns

Remarks

See Also

Source Code

function ceip_startlog()
{
dd("CEIP: LOGGING START");
var version = getVersionInfo();
this.enabled = true;
this.logEvent({
type: "logger",
event: "start",
userid: client.prefs["ceip.userid"],
clientVersion: __cz_version,
clientVersionSuffix: __cz_suffix,
clientLocale: this.getSelectedLocale("chatzilla"),
hostName: version.hostName,
hostVersion: version.hostVersion,
hostBuildID: version.hostBuildID,
hostLocale: this.getSelectedLocale("global"),
tz: this.getWinterTimezoneOffset(),
tzNow: (new Date()).getTimezoneOffset()
});
var self = this;
var hfn1 = function(e) { return self.hookCommandBefore(e); };
var hfn2 = function(e) { return self.hookCommandAfter(e); };
var hfn3 = function(event, cx, popup) { return self.hookMenuOpen(event, cx, popup); };
var hfn4 = function(event, cx, popup) { return self.hookMenuClose(event, cx, popup); };
// Set up all of our hooks.
if (!("beforeHooks" in client.commandManager)) {
client.commandManager.beforeHooks = new Object();
}
if (!("afterHooks" in client.commandManager)) {
client.commandManager.afterHooks = new Object();
}
client.commandManager.beforeHooks["ceip"] = hfn1;
client.commandManager.afterHooks["ceip"] = hfn2;
this.commandNest = 0;
if (client.menuManager.onCallbackPopupShowing)
throw "Someone beat CEIP to the MenuManager callback!";
client.menuManager.onCallbackPopupShowing = hfn3;
client.menuManager.onCallbackPopupHiding = hfn4;
}