try to create log directory if possible