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 help

Support & discussion of released scripts, and announcements of new releases.
Post Reply
t
tclnick
Voice
Posts: 7
Joined: Thu Mar 04, 2010 11:27 pm

logs2html help

Post by tclnick »

I'm having a problem with logs2html.

When I start eggdrop it I get the error
Eggdrop v1.6.19+ctcpfix (C) 1997 Robey Pointer (C) 2008 Eggheads
[06:22] --- Loading eggdrop v1.6.19+ctcpfix (Fri Mar 5 2010)
[06:22] LANG: No lang files found for section logs2html.
[06:22] Module loaded: logs2html (with lang support)
[06:22] Error finding logfiles! Please check settings in your config file to be sure statement "logfile" present.
[06:22] Can't find expression "logfile" for channel '#mychannel' with mode '+p'.
I can't work out a way to fix this, I have set eggdrop to log to eggdrop1.6.19/logs/ and that seems to be workingfine. I setup the logs2html.conf file and set
addlogs2htmlchan #mychannel "/eggdrop1.6.19/logs" index "Logs of MyChannel" mychan "Log of MyChannel"
My eggdrop.conf file has a

Code: Select all

 source source logs2html.conf
mention in it..
Also this is the settings in the eggdrop.conf for logging logfile jpkw #mychannel"logs/mychannel.log"
I'm baffled

:?

Edit - Now when I rehash the bot, it says

Code: Select all

 [14:58] Rehashing ...
[14:58]   logs2html module: added channel '#mychannel'. Total channels added: 1. 
But still that same error message that I posted above..



Well I'l be damned, it started working :D :D :D

I was in DCC and it said

Code: Select all

<myname> [15:00] Writing user file...
<myname> [15:00] Writing channel file...
So I ran the .convertall command and then I got

Code: Select all

[15:01] #myname# begin creation of logfiles.
<myname>  Creating logs for channel '#mychannel' for 2008 year.
<myname>  Creating index page for channel '#mychannel' for 2008 year.
etc, etc until 2010.
Appears not to have created an index2010.html file though :( and I'm still getting the

Code: Select all


[15:14] Error finding logfiles! Please check settings in your config file to be sure statement "logfile" present.
[15:14] Can't find expression "logfile" for channel '#mychannel' with mode '+p'.
This is the logging option in my eggdrop.conf

Code: Select all

logfile jwk #mychannel "logs/#mychannel.log"
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

The logfile flag "+w" is wallops, its not a channel flag.
The logfile flog "+p" that the error mentioned is, public text

Maybe try switching them? so you would have

Code: Select all

logfile jpk #mychannel "logs/#mychannel.log"
I'd find it a bit strange if logs2html module didn't allow you to add a channel, with needing it to have "public text" logfile flag.

Code: Select all

# Logfile flags:
#   b - information about bot linking and userfile sharing
#   c - commands
#   d - misc debug information
#   h - raw share traffic
#   j - joins, parts, quits, and netsplits on the channel
#   k - kicks, bans, and mode changes on the channel
#   m - private msgs, notices and ctcps to the bot
#   o - misc info, errors, etc (IMPORTANT STUFF)
#   p - public text on the channel
#   r - raw incoming server traffic
#   s - server connects, disconnects, and notices
#   t - raw botnet traffic
#   v - raw outgoing server traffic
#   w - wallops (make sure the bot sets +w in init-server)
#   x - file transfers and file-area commands
#
t
tclnick
Voice
Posts: 7
Joined: Thu Mar 04, 2010 11:27 pm

Post by tclnick »

Well I set it to

Code: Select all

logfile jpk #mychannel "logs/#mychannel.log"
And still, I'm getting

Code: Select all

[02:18] LANG: No lang files found for section logs2html.
[02:18] Module loaded: logs2html        (with lang support)
[02:18] Error finding logfiles! Please check settings in your config file to be sure statement "logfile" present.
[02:18] Can't find expression "logfile" for channel '#mychannel' with mode '+p'.
:?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Just checked the source of that module; did you make sure to run the logfile command prior sourcing the logs2html.conf script?
NML_375
t
tclnick
Voice
Posts: 7
Joined: Thu Mar 04, 2010 11:27 pm

Post by tclnick »

The logfile command as in the logfile jpk #mychan...?

I believe I did.. Although perhaps not.. Should I move the directories then to fresh ones and see if it works?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

That command yes.
If you're not sure, just open your configfile in your favorite editor, and locate that line as well as the "source logs2html.conf", and see which one comes first (closest to the top of the file).
NML_375
t
tclnick
Voice
Posts: 7
Joined: Thu Mar 04, 2010 11:27 pm

Post by tclnick »

Ahh. I get ya, I will have a look.

Seems that the source logs2html.conf is before the actual mention of the logfile :D

I will change it around and see how it goes :P

Edit - The error has gone :o

Code: Select all

[05:04] LANG: No lang files found for section logs2html.
[05:04] Module loaded: logs2html        (with lang support)
[05:04]   logs2html module: added channel '#mychanel'. Total channels added: 1.
You, Sir, are a genius.
Post Reply