sorry, I was wrong. If I don't specify any directory, the log file was created, and log worked fine.
But I retried the forward slashes, did not work ... On Thu, Apr 9, 2009 at 12:07 PM, Lijuan Zhu <zhu.lij...@gmail.com> wrote: > Curt, thanks again! > > I am using the xml configuration file, and tried forward slashes, no > directory before I asking the question, still no luck... > > On Thu, Apr 9, 2009 at 12:03 PM, Curt Arnold <carn...@apache.org> wrote: > >> Try using forward slashes in the file name. If that doesn't work, start >> with a file no directory specification. log4cxx uses APR which provides a >> consistent API above the filesystem including trying to provide a consistent >> file specification format (as does Java) and takes forward slashes on all >> platforms. >> >> If you are using the property configuration, backslashes are escape >> sequences and will get mangled (double backslashes should work fine). >> Wouldn't think it would affect you if you were using XML configuration. >> >> The file open is in src/fileoutputstream.cpp around line 54. >> >> >> >> On Apr 8, 2009, at 10:30 PM, Lijuan Zhu wrote: >> >> I am new to log4cxx, and just got it set up into my application. I >>> configured a xml file for the logging, but the log file like c:\temp.log >>> could not be created by the log4cxx. I am sure my app has the privelegesto >>> create file. >>> I would like to debug the source code, would someone please point me to >>> the source code? >>> >>> Thanks, >>> Lijuan >>> >> >> >