Added LogFormat and a CommandListener

I added a new format for logging messages, and I also added a listener
for handling commands.