Added error override and log closure

Error overriding makes use of Log API