add logger
logger with error