Replace custom log function with lager