Added logger with warn and debug