I am using log4cpp for my C++ project. What I need is to generate log files in custom locations instead of current directory. For that, I have set some environment variables for log file path. The problem is how can I use this for my C++ project. What I n