use custom logger instead of logging