extend errors and allow optional conf object for Logger