Finished a prototype for logging server