adding log support and log directory ignore