Added one log option (--log)

Ok this is WIP, tell me what you think. I don't currently have much time to
finish this, but if you like it, I can find some :-)