This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

logs2html issues.

Support & discussion of released scripts, and announcements of new releases.
Post Reply
z
zEkE
Voice
Posts: 1
Joined: Tue Jan 04, 2011 2:04 pm
Location: Harrisonburg, VA
Contact:

logs2html issues.

Post by zEkE »

Howdy all,

I've been searching for a while and not come up with anything, so I am finally giving in and asking for help.

I've been using logs2html for as long as I remember (2007, 2008?) and I've just recently noticed that the format of the HTML pages is not at all good.
[00:23:42] kn_ (~kn_@uccn-F51 3FBE.hsd1.ga.comcast.net) joined #uccn.
[00:23:55] Hi kn_ 3FBE.hsd1.ga.comcast.net) joined #uccn.
[00:24:01] hi 3FBE.hsd1.ga.comcast.net) joined #uccn.
[00:24:12] How are you Happy New Year
[00:24:16] fine Happy New Year
[00:24:21] my is burning
[00:24:24] how about yo
I take a look at my HTML source:

Code: Select all

	<div> <span class="time">[00:23:42] kn_ (~kn_@uccn-F51</span> <span class="else_j"> 3FBE.hsd1.ga.comcast.net) joined #uccn.</span></div>
			<div> <span class="time">[00:23:55] <peer> Hi kn_</peer></span> <span class="else_j"> 3FBE.hsd1.ga.comcast.net) joined #uccn.</span></div>
			<div> <span class="time">[00:24:01] <kn_> hi</kn_></span> <span class="else_j"> 3FBE.hsd1.ga.comcast.net) joined #uccn.</span></div>

			<div> <span class="time">[00:24:12] <peer> How are you</peer></span> <span class="else">  Happy New Year</span></div>
			<div> <span class="time">[00:24:16] <kn_> fine</kn_></span> <span class="else">  Happy New Year</span></div>
			<div> <span class="time">[00:24:21] <kn_> my <censored></censored></kn_></span> <span class="else">  is burning</span></div>

			<div> <span class="time">[00:24:24] <kn_> how about yo</kn_></span> <span class="else"> </span></div>
Now, please note: I have not touched the source in any way beyond looking to see if I could figure it out myself. I always compiled and installed with a clean distributed copy.

I had noticed it initially on version 2.3.4, and in my search I found an updated version which appeared my solve my problems, and so updated to 2.4.3. The problem remains.

My log files date back to November of 2008 for one channel, and late in 2010 for a second. Both sets of log files appear to be uncorrupted, but both channels are broken in the web pages.

The one thought I had was that perhaps a change in timestamp format had caused the problem. In Nov 2010, around when I started logging the second channel, the format of the timestamp changed from [HH:MM] to [HH:MM:SS]. I have ruled this out, however, by attempting to convert the new channel, which only has the new timestamp. These new files have exactly the same problem.

At this point I have run out of ideas on what to do. The only things I can come up with have all been ruled out.

Here is my setup:
Pentium 3, 866mHz.
Debian claims to be "Debian squeeze/sid"
Stock Debian kernel 2.6.32-5-686.
Eggdrop 1.6.20+SSL.

Here is my comment-stripped config:

Code: Select all

set col-count 3

set lines-per-page 0

#set user-style user.css

set insert-encoding-str "windows-1251"

set start-year 2008

set dont-print-time 1

set dont-print-join 0

set dont-print-left 0

set dont-print-modechange 0

set dont-print-nickchange 0

set dont-print-kick 0

set dont-print-else 0

set month-block-orientation 0

#set mainpage-top ""
#set mainpage-bottom ""
#set logspage-top ""
#set logspage-bottom ""

loadmodule logs2html

addlogs2htmlchan "#uccn" "/home/bots/public_html/logs/" "index" "Logs from #UCCN" "uccn" "Log from #UCCN"
addlogs2htmlchan "#helmetheads" "/home/bots/public_html/logs/" "helmetheads" "Logs from #HelmetHeads" "helmetheads" "Log from #HelmetHeads"
Here is a complete (small) output from a log file:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
	<meta name="title" content="Log from #UCCN" />
	<meta name="description" content="Log from #UCCN" />
	<meta name="generator" content="logs2html module for Eggdrop v.2.4.3" />
	<meta name="author" content="Fedotov Alexander aka shurikvz aka shmupsik" />
	<meta name="keywords" content="logs2html, logs, logging, channel, irc, bot, eggdrop, windrop, mirc, module, convert" />
	<meta name="robots" content= "index,all" />

	<link rel="stylesheet" type="text/css" href="default.css" />
	<title>Log from #UCCN. 1/1/2010.</title>
	<!--[if IE]>
	<style type="text/css">
	.l2hLogPage #mainblock { zoom: 1; padding-top: 15px; }
	/* the above proprietary zoom property gives IE the hasLayout it may need to avoid several bugs */
	</style>
	<![endif]-->
</head>

<body class="l2hLogPage">
	<div id="container">
		<div id="header">
			<a name="top" id="top"></a>
		</div>

		<div id="mainblock">
			<div id="navtop"><a href="index2010.html">Main page</a></div>
			<div> <span class="time">[04:20] Disciple (JavaUser@uc</span> <span class="else_li"> n-E44AE224.columbus.res.rr.com) left irc: Quit: Check out #Disciple's website @ <a href="http://www.disciplechat.net">www.disciplechat.net</a></span></div>
			<div> <span class="time">[04:49] mowse (~amowse@opers.</span> <span class="else_li"> owse.net) left irc: Quit: </span></div>
			<div> <span class="time">[05:51] mowse (~amowse@staff.</span> <span class="else_j"> nitedchristianchat.net) joined #uccn.</span></div>

			<div> <span class="time">[05:51] #uccn: mode change '+</span> <span class="else"> o mowse mowse' by United!Services@UnitedChristianChat.net</span></div>
			<div> <span class="time">[06:31] Jes (Jes@uccn-6B792E0</span> <span class="else_li"> .hsd1.mi.comcast.net) left irc: Quit: </span></div>
			<div> <span class="time">[06:49] frogman302 (~UCCN@ucc</span> <span class="else_j"> -43ACD8B0.gar.clearwire-wmx.net) joined #uccn.</span></div>
			<div> <span class="time">[06:49] <frogman302> hi</span> <span class="else_j"> -43ACD8B0.gar.clearwire-wmx.net) joined #uccn.</span></div>

			<div> <span class="time">[06:51] <frogman302> anyone o</span> <span class="else"> ?</span></div>
			<div> <span class="time">[06:52] frogman302 (~UCCN@ucc</span> <span class="else_li"> -43ACD8B0.gar.clearwire-wmx.net) left irc: Quit: <a href="http://www.unitedchristianchat.com/">http://www.unitedchristianchat.com/</a> -- For where two or three are gathered together in my name, there am I in the midst of them. (Matt. 18:20)</span></div>
			<div> <span class="time">[08:15] mowse (~amowse@opers.</span> <span class="else_li"> owse.net) left irc: Ping timeout</span></div>

			<div> <span class="time">[13:05] Jes (Jes@uccn-6B792E0</span> <span class="else_j"> .hsd1.mi.comcast.net) joined #uccn.</span></div>
			<div> <span class="time">[00:00] --- Sat Jan  2 2010</span> <span class="else_j"> .hsd1.mi.comcast.net) joined #uccn.</span></div>
		</div>
		<div id="totoplink"><a href="#top">up</a></div>
		<br class="clearfloat" />
		<div id="footer">

<p>Generated by logs2html module for eggdrop v.2.4.3<br />Find latest version at <a href="http://sourceforge.net/projects/logs2html">http://sourceforge.net/projects/logs2html</a> or <a href="http://www.halftone.ru/projects">http://www.halftone.ru</a></p>
		</div>
	</div>
</body>
</html>
Here is the log file from which the above was generated:

Code: Select all

[04:20] Disciple (JavaUser@uccn-E44AE224.columbus.res.rr.com) left irc: Quit: Check out #Disciple's website @ www.disciplechat.net
[04:49] mowse (~amowse@opers.mowse.net) left irc: Quit:
[05:51] mowse (~amowse@staff.unitedchristianchat.net) joined #uccn.
[05:51] #uccn: mode change '+ao mowse mowse' by United!Services@UnitedChristianChat.net
[06:31] Jes (Jes@uccn-6B792E0B.hsd1.mi.comcast.net) left irc: Quit:
[06:49] frogman302 (~UCCN@uccn-43ACD8B0.gar.clearwire-wmx.net) joined #uccn.
[06:49] <frogman302> hi
[06:51] <frogman302> anyone on?
[06:52] frogman302 (~UCCN@uccn-43ACD8B0.gar.clearwire-wmx.net) left irc: Quit: http://www.unitedchristianchat.com/ -- For where two or three are gathered together in my name, there am I in the midst of them. (Matt. 18:20)
[08:15] mowse (~amowse@opers.mowse.net) left irc: Ping timeout
[13:05] Jes (Jes@uccn-6B792E0B.hsd1.mi.comcast.net) joined #uccn.
[00:00] --- Sat Jan  2 2010
Post Reply