[link] 2006-07-22T19:55:41 connecting the loggers of mochikit, firebug, and divmod: This will save you about 50 seconds of RTFS, but maybe that's all that was stopping you from having a comfortable logging setup. The plan is to redirect mochikit log() messages and divmod log messages into firebug, whose console will stay active over a reload, and can be turned on and off more easily than a mochikit in-the-page page. Now:
Divmod.logger.addObserver(function(ev) {
if (ev.channel == "transport") {
return;
}
console.info("divmod (%s): %s", ev.channel, ev.message);
});
logger.addListener('logConsole', null, function(msg) {
console.info(msg);
});
log("mochikit message");
console.info("firebug message");
Divmod.log("divmod message");
[link] 2006-07-22T19:57:10 ayttm logging patch: I upgraded from everybuddy to ayttm, but I wanted to bring my patch with me. This patch puts full times (except tzone) onto the display and log files, giving you a much better chance of analyzing them later. Also, I backslash-escape newlines and backslashes, so that the log records aren't ambiguous. This revised patch also includes a fix to a const error in yahoo.c, which I think the proper ubuntu package has its own fix for. This was my first time working with ubuntu packages, and I learned almost nothing. To apply my patch, run something like this: The good logs will look like this: Patch is here: http://bigasterisk.com/post/new_ayttm-0.4.6+26_log.diff
apt-get source ayttm
tar xvzf ayttm_0.4.6+26.orig.tar.gz
cd ayttm-0.4.6+26
patch -p 1 -i ../new_ayttm-0.4.6+26_log.diff
dpkg-buildpackage -nc -rfakeroot
cd ..
dpkg -i ayttm_0.4.6+26-1build1_i386.deb
20060411 23:20:13 drewperttu: log test 2
![]() | Unless otherwise noted, all content licensed by Drew Perttula under a Creative Commons License. |