Switch to custom logging