summaryrefslogtreecommitdiff
path: root/webserver/logs.c
diff options
context:
space:
mode:
Diffstat (limited to 'webserver/logs.c')
-rw-r--r--webserver/logs.c8
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)));
+}