Added --log support

#15