Replace println with log