#! /usr/local/bin/ehtml The Official EHTML Page - Code LOG

The Official EHTML Page - Code LOG

To Log Visitors To Your Page


The <LOG> code under EHTML is used to maintain a "visitor log". That is, a log file is updated every time your page is loaded by a client.

The log file that is created can then be referenced by you for statistical purposes. The log file created with the <LOG> code contains only the domain name of the client that loaded your page. For more detailed information, use the <DATELOG> code instead.


Attributes

filename
The name of the file that will contain your log of visitors, without any extension. EHTML will automatically add an extension of ".log".


Setup

Since the <LOG> code maintains the log of the visitors to a given page in a text file, it must be able to create and access that file. This means that the EHTML directory, where the logs are stored, must be both "readable" and "writable".

To begin the setup for the <LOG> command, you must access a UNIX prompt by either logging in to "alpha.vaxxine.com" using a terminal emulator program or by using a "telnet" program running over SLIP/PPP.

After logging in, you must set your EHTML directory so that it can be accessed by the EHTML server. To do so, enter the following commands under UNIX.

 cd ~/html/ehtml          ; # Enter your EHTML data directory under UNIX
 chmod a+rw .             ; # This lets the EHTML server access logs

After your log file is able to be created in the way specified above, you must add the code to your document in order to maintain the log. You use the format <LOG logfile> where logfile can be any short name for this particular log. Note that by convention you should not use spaces in your log file name. As well, the EHTML server automatically adds an extension of ".log" to log files.