fixed logger directory not exists issues