diff options
Diffstat (limited to 'src/webserver/logs.c')
-rw-r--r-- | src/webserver/logs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/webserver/logs.c b/src/webserver/logs.c new file mode 100644 index 000000000..405b4882b --- /dev/null +++ b/src/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))); +} |