Monday, November 08, 2010 at 12:05 AM.


on writeLog () {
		<<8/11/10; 3:37:34 PM by DW
	local (adrdata = realtime.init ());
	if adrdata^.server.prefs.log.enabled {
		local (t);
		new (tabletype, @t);
		t. logTable = log2.view (, flSingleDay:false); = ();
		t.title = "Realtime Log";
		local (s = string.multiplereplaceall (string (, @t, false, "<%", "%>"));
		local (f = adrdata^.server.prefs.log.f);
		file.surefilepath (f);
		file.writewholefile (f, s)}};
bundle { //test code
	writeLog ()}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.