Roughly working logging implementation. Still need to get it to print out on the client-side.