1 // $Id: ApacheModule.m,v 1.1 2004/06/08 11:15:59 helge Exp $
3 #include "ApacheModule.h"
4 #include "ApacheCmdParms.h"
5 #include "ApacheResourcePool.h"
6 #import <Foundation/Foundation.h>
9 int ApacheDeclineRequest = DECLINED;
10 int ApacheHandledRequest = OK;
12 @implementation ApacheModule
14 - (NSString *)usageForConfigSelector:(SEL)_selector {
20 - (void)logWithFormat:(NSString *)_format, ... {
21 NSString *value = nil;
24 va_start(ap, _format);
25 value = [NSString stringWithFormat:_format arguments:ap];
29 printf("|0x%08X| %s\n", (unsigned int)self, [[value description] cString]);
31 NSLog(@"|0x%08X| %@", self, value);
34 - (void)debugWithFormat:(NSString *)_format, ... {
35 static char showDebug = 2;
36 NSString *value = nil;
41 showDebug = [WOApplication isDebuggingEnabled] ? 1 : 0;
46 va_start(ap, _format);
47 value = [NSString stringWithFormat:_format arguments:ap];
51 printf("|0x%08X|D %s\n", (unsigned int)self,
52 [[value description] cString]);
54 NSLog(@"|0x%08X|D %@", self, value);
59 @end /* ApacheModule */