error logger to slogger