convert console to $log