Continuation...
[vsys.git] / globals.ml
index 4c04057..1506e01 100644 (file)
@@ -9,6 +9,9 @@ let log_filepath = ref "/var/log/vsys"
 let failsafe = ref false
 
 let logfd = open_out_gen [Open_append;Open_creat] 0o644 !log_filepath
+let logprint fmt = Printf.fprintf logfd (fmt ^^ "%!")
+let print fmt = Printf.printf (fmt ^^ "%!")
+
 type result = Success | Failed
 type fname_and_fd = string option * Unix.file_descr