Added --log support

Closed #15