add a compiler pragma to be a swich of AjustLogOutputDir function
support dynamic adjusting log file path (previous commit)
add log output in some place in the project