[FIX] Log as generic function