Updated customLog fct