As to setup log4cxx under windows, Cygwin should be config before.
There are following steps:
Start from the link http://www.cygwin.com/
1. Get a setup.exe of Cygwin, which is used to download sorce of Cygwin from web site;
2. run the execute, and the trouble step maybe finding a availible mirror site of Cygwin, and all of the mirror site for Cygwin could be retrieve from here http://cygwin.com/mirrors.html . Try them one by one and get an availible mirror.
3. then download the necessary part, if you have no idea about what is necessary, check here http://www.programarts.com/cfree_ch/doc/help/UsingCF/CompilerSupport/Cygwin/Cygwin1.htm
4. At last, add the path of bin folder at end of envionment variable "PATH".
then that's all.