Added error logger
Added error logger