adding error log to api (Along with admin error log display)