Work on custom error logger