--- libwww/Library/src/HTLog.html 1997/02/16 18:42:31 2.12
+++ libwww/Library/src/HTLog.html 1997/12/16 21:09:19 2.13
@@ -1,8 +1,6 @@
-
+W3C Sample Code Library libwww Log Class
@@ -15,7 +13,7 @@
*/
-This module maintaines logs of request to a file.
+This is a generic log object which can be used to log events to a file.
This module is implemented by HTLog.c, and it is
a part of the W3C
@@ -28,42 +26,50 @@ Sample Code Library.
#include "HTReq.h"
-
Enable the log
+Create a new Log Object
-Open the log file and start doing log. The time used in the log file
+Create a new object and open the log file. The time used in the log file
is either GMT or local dependent on local
.
-extern BOOL HTLog_open (const char * filename, BOOL local, BOOL append);
+typedef struct _HTLog HTLog;
+
+extern HTLog * HTLog_open (const char * filename, BOOL local, BOOL append);
-Disable the log
+Delete a Log Object
-Close the log file and do more log
+Close the log file and delete the object
-extern BOOL HTLog_close (void);
+extern BOOL HTLog_close (HTLog * log);
-In log Enabled?
+Log a Client Request in CLF
+
+This functions logs the result of a request in what's close to CLF. It can
+be used on client side to track user behavior.
-extern BOOL HTLog_isOpen (void);
+extern BOOL HTLog_addCLF (HTLog * log, HTRequest * request, int status);
-Log a Request
+Log the following line
-This functions logs the result of a request.
+A generic logger - logs whatever you put in as the line. The caller
+is responsible for adding a line feed if desired.
-extern BOOL HTLog_add (HTRequest * request, int status);
+extern BOOL HTLog_addLine (HTLog * log, const char * line);
+
+
#endif
-@(#) $Id: HTLog.html,v 2.12 1997/02/16 18:42:31 frystyk Exp $
+@(#) $Id: HTLog.html,v 2.13 1997/12/16 21:09:19 frystyk Exp $