Annotation of libwww/Library/src/HTLog.html, revision 2.13

2.1       frystyk     1: <HTML>
                      2: <HEAD>
2.13    ! frystyk     3: <TITLE>W3C Sample Code Library libwww Log Class</TITLE>
2.1       frystyk     4: </HEAD>
                      5: <BODY>
                      6: 
                      7: <H1>Log Manager</H1>
                      8: 
                      9: <PRE>
                     10: /*
2.2       frystyk    11: **     (c) COPYRIGHT MIT 1995.
2.1       frystyk    12: **     Please first read the full copyright statement in the file COPYRIGH.
                     13: */
                     14: </PRE>
                     15: 
2.13    ! frystyk    16: This is a generic log object which can be used to log events to a file.<P>
2.1       frystyk    17: 
                     18: This module is implemented by <A HREF="HTLog.c">HTLog.c</A>, and it is
2.7       frystyk    19: a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
2.12      frystyk    20: Sample Code Library</A>.
2.1       frystyk    21: 
                     22: <PRE>
                     23: #ifndef HTLIBLOG_H
                     24: #define HTLIBLOG_H
                     25: 
2.6       frystyk    26: #include "HTReq.h"
2.1       frystyk    27: </PRE>
                     28: 
2.13    ! frystyk    29: <H2>Create a new Log Object</H2>
2.1       frystyk    30: 
2.13    ! frystyk    31: Create a new object and open the log file. The time used in the log file
2.1       frystyk    32: is either GMT or local dependent on <CODE>local</CODE>.
                     33: 
                     34: <PRE>
2.13    ! frystyk    35: typedef struct _HTLog HTLog;
        !            36: 
        !            37: extern HTLog * HTLog_open (const char * filename, BOOL local, BOOL append);
2.1       frystyk    38: </PRE>
                     39: 
2.13    ! frystyk    40: <H2>Delete a Log Object</H2>
2.1       frystyk    41: 
2.13    ! frystyk    42: Close the log file and delete the object
2.1       frystyk    43: 
                     44: <PRE>
2.13    ! frystyk    45: extern BOOL HTLog_close (HTLog * log);
2.8       frystyk    46: </PRE>
                     47: 
2.13    ! frystyk    48: <H2>Log a Client Request in CLF</H2>
        !            49: 
        !            50: This functions logs the result of a request in what's close to CLF. It can 
        !            51: be used on client side to track user behavior.
2.8       frystyk    52: 
                     53: <PRE>
2.13    ! frystyk    54: extern BOOL HTLog_addCLF (HTLog * log, HTRequest * request, int status);
2.1       frystyk    55: </PRE>
                     56: 
2.13    ! frystyk    57: <H2>Log the following line</H2>
2.1       frystyk    58: 
2.13    ! frystyk    59: A generic logger - logs whatever you put in as the line. The caller
        !            60: is responsible for adding a line feed if desired.
2.1       frystyk    61: 
                     62: <PRE>
2.13    ! frystyk    63: extern BOOL HTLog_addLine (HTLog * log, const char * line);
        !            64: </PRE>
2.1       frystyk    65: 
2.13    ! frystyk    66: <PRE>
2.1       frystyk    67: #endif
                     68: </PRE>
                     69: 
2.11      frystyk    70: <HR>
                     71: <ADDRESS>
2.13    ! frystyk    72: @(#) $Id: HTLog.html,v 2.12 1997/02/16 18:42:31 frystyk Exp $
2.11      frystyk    73: </ADDRESS>
2.1       frystyk    74: </BODY>
                     75: </HTML>

Webmaster