use the printf format for logging