Adding file logging feature.

Now the server will log all the activities on the server.