diff options
Diffstat (limited to 'webserver/logs.c')
-rw-r--r-- | webserver/logs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webserver/logs.c b/webserver/logs.c new file mode 100644 index 000000000..faa1abf80 --- /dev/null +++ b/webserver/logs.c @@ -0,0 +1,8 @@ +#include <time.h>
+
+void log_visit(char *query, char *ip)
+{
+ time_t timer;
+ timer=time(NULL);
+ printf("%s - \"%s\" - %s", ip, query, asctime(localtime(&timer)));
+}
|