improve error logger middleware
release 0.2.2