00001
00002
00003
00004
00005
00006
00007
00008
00015 #ifndef zz_access_log_h
00016 #define zz_access_log_h
00017
00018 #include <zz_http_request.h>
00019 #include <zz_file.h>
00020 #include <zz_win_threadmutex.h>
00021
00022 class ZZ_API CzzAccessLog
00023 {
00024 public:
00025
00031 CzzAccessLog( const char* file );
00032 virtual ~CzzAccessLog();
00033
00041 virtual void write( CzzHTTPRequest* req, int responce_code, int size );
00042
00043 protected:
00044 private:
00045
00046 unsigned __int64 getTime( void );
00047 int CzzAccessLog::getClfTime( char *buffer, unsigned len, struct tm *t );
00048
00049 CzzFile m_File;
00050 static CzzWinThreadMutex m_Mutex;
00051 };
00052
00053 #endif // zz_access_log_h