$OpenBSD: patch-source_log_c,v 1.3 2014/01/19 03:04:39 pascal Exp $
--- source/log.c.orig	Mon Dec 30 17:42:38 2013
+++ source/log.c	Fri Jan 17 14:09:51 2014
@@ -163,9 +163,16 @@ set_log_file(u_char *filename)
 void
 add_to_log(FILE *fp, u_char *line)
 {
+	time_t	t;
+	struct tm *tm;
+	char buf[32];
+
 	if (fp)
 	{
-		fprintf(fp, "%s\n", line);
+		t = time(0);
+		tm = localtime(&t);
+		strftime(buf, sizeof buf, "%b %d %R", tm);
+		fprintf(fp, "[%s] %s\n", buf, line);
 		fflush(fp);
 	}
 }
