Introduce logging

Change-Id: I5ac91cc195a46d666714904b56e9f89f56f9c2c0
diff --git a/utils.php b/utils.php
index d50cc24..44160c0 100644
--- a/utils.php
+++ b/utils.php
@@ -1,4 +1,8 @@
 <?php
+
+include_once 'User.php';
+use \User as User;
+
 function generateRandomString($length = 96)
 {
     $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
@@ -65,4 +69,9 @@
     $string = str_replace("{{organization}}", $user->organization, $string);
     $string = str_replace("{{username}}", $user->user_name, $string);
     return $string;
+}
+
+function user_to_string(User $user)
+{
+    return $user->first_name . " " . $user->last_name . " <" . $user->email . "> " . $user->organization . " " . $user->user_name;
 }
\ No newline at end of file