I am trying to create logs in directories where each directories are created day wise, but fileHandler is not creating directories rather its throwing exception Couldn't get lock for C:dir_dateLogging.txt (here dir_date is not present and i am trying to create log into this directory). Can i create directories through "fileHandler " ?
FileHandler fileTxt;
fileTxt = new FileHandler("C:\ff\Logging.txt");
log4J can create even directories if not present ,isn't this possible through fileHandler ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…