RefactorLog: Create log directory when initializing LogModule.