vlib: init logging eearlier

Type: improvement
Change-Id: I2eb5543aa470094d4c5ad420a2fcc9873b7808e1
Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vlib/main.c b/src/vlib/main.c
index 6d241bd..874f6a1 100644
--- a/src/vlib/main.c
+++ b/src/vlib/main.c
@@ -1887,6 +1887,12 @@
       goto done;
     }
 
+  if ((error = vlib_log_init (vm)))
+    {
+      clib_error_report (error);
+      goto done;
+    }
+
   if ((error = vlib_stats_init (vm)))
     {
       clib_error_report (error);