add support for custom logging