Make logging optional on EFM32 board