logging for spi