Gossamer Forum
Home : Products : DBMan : Customization :

Formatting the log file

Quote Reply
Formatting the log file
I've searched the post and can't seem to find anything specifically related to this particular modification.

I would like to reformat the text of the logfile:

From:

admin logged on at 06:47:01 on 17-Mar-2002 from adsl-156-59-14.asm.bellsouth.net

To:

User:admin~Logged on:06:47:01 on 17-Mar-2002 ~Action:(Whatever it is . . modified, added, etc. . )~From:adsl-156-59-14.asm.bellsouth.net

We use a filemaker database to process information and this format will allow us to parse the information into respective fields in the database. The "~" can be any character.

I would appreciate a direction on this.
Quote Reply
Re: [bbooker] Formatting the log file In reply to
Try this... in auth.pl find the sub called auth_logging and change:

Code:
print LOG "$uid $action at $time on $date from $ENV{'REMOTE_HOST'}\n";

to this:

Code:
print LOG "$uid~$action at~$time on $date~from $ENV{'REMOTE_HOST'}\n";

Give it a shot and see what happens. Good luck!
Quote Reply
Re: [Watts] Formatting the log file In reply to
There was a thread and a mod created called "Log File Viewer/Editor"

http://gossamer-threads.com/p/114266 -
Subject: Log File Viewer/Editor
Philip_Clark 20-Nov-2000

This may provide you with options to set up the log file to display more information to be used for statistics.

Hope this helps

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Formatting the log file In reply to
Thanks all, your help made it happen.