Fix java pattern quotes error, and changed log file pattern.