Added logger
fixed logger and added config component