From: Andy <hew...@gm...> - 2008-05-21 07:41:39
|
2008/5/21 Konstantin Litvinenko <Kon...@ma...>: > Hello, Andy! > You wrote to <log...@li...> on Mon, 19 May 2008 > 20:38:37 +0800: > > > A> after I call init(), then I write this: > > A> loggg.debug(" Hello, log4cpp!"); > > On Windows this code works as expected > > #include <log4cpp/Category.hh> > #include <log4cpp/PropertyConfigurator.hh> > #include <iostream> > > log4cpp::Category& loggg = > log4cpp::Category::getInstance(std::string("mylog")); > > void init() > { > > try > { > log4cpp::PropertyConfigurator::configure("log4cpp.properties"); > } > catch (log4cpp::ConfigureFailure & f) > { > std::cerr << "configure problem " << f.what() << std::endl; > } > > } > > int main() > { > init(); > loggg.debug(" Hello, log4cpp!"); > return 0; > } > > Print out: > > 2008-05-21 08:30:38,718 [DEBUG][3476] : Hello, log4cpp! > 2008-05-21 08:30:38,718 [DEBUG][3476] : Hello, log4cpp! > > What log4cpp version, compiler version, OS do you use? OS: [root@localhost MSCA]# uname -a Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux log4cpp: log4cpp-1.0 And I ssh to the computer with SSH SECURE SHELL, is this a problem ? Thanks so much. > > With best regards, Konstantin Litvinenko. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Log4cpp-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cpp-devel > |