Added log service.
Improved the error service.