added some customization to $log