set_log function

Customise logs