/*                                                   W3C Sample Code Library libwww Log Class
                                       LOG MANAGER
                                             
 */
/*
**      (c) COPYRIGHT MIT 1995.
**      Please first read the full copyright statement in the file COPYRIGH.
*/
/*

   This module is implemented by HTLog.c, and it is a part of the W3C Sample Code Library.
   
 */
#ifndef HTLIBLOG_H
#define HTLIBLOG_H

#include "HTReq.h"
/*

CREATE A NEW LOG OBJECT

   local.
   
 */
typedef struct _HTLog HTLog;

extern HTLog * HTLog_open (const char * filename, BOOL local, BOOL append);
/*

DELETE A LOG OBJECT

 */
extern BOOL HTLog_close (HTLog * log);
/*

HOW MANY TIMES HAS LOG OBJECT BEEN ACCESSED?

 */
extern int HTLog_accessCount (HTLog * log);
/*

LOG A CLIENT REQUEST IN CLF

 */
extern BOOL HTLog_addCLF (HTLog * log, HTRequest * request, int status);
/*

LOG REFERER FIELDS

 */
extern BOOL HTLog_addReferer (HTLog * log, HTRequest * request, int status);
/*

LOG THE FOLLOWING LINE

 */
extern BOOL HTLog_addLine (HTLog * log, const char * line);
/*

LOG THE FOLLOWING VARIABLE ARGUMENTS

 */
extern BOOL HTLog_addText (HTLog * log, const char * fmt, ...);
/*

 */
#endif
/*

   
   ___________________________________
   
                             @(#) $Id: HTLog.html,v 2.17 1998/05/14 02:10:40 frystyk Exp $
                                                                                          
   */
