在VS2005中使用log4cxx [英] Using log4cxx in VS2005
问题描述
我想使用log4cxx在我的应用程序的日志文件或其他位置记录条目.我是log4cxx的新手.谁能告诉我如何在VS2005中将所有这些添加到我的应用程序中.
我在google中尝试过,但没有看到任何分步说明来做到这一点.
我所知道的是
1)一个XML文件要包含在项目中.
2)log4cxx头文件.
或可能是一些或一个dll文件.
我有一个log4cxx.dll文件,但我不知道如何使用它.;-(
或其他必须遵循的方式?
在网络上的某些示例中.
#include< log4cxx/logger.h>
但这将在没有头文件的情况下工作..
我把那个XML配置文件放了吗?
任何人都可以举一个记录日志的小例子....我的意思是从安装到loggig
在此先感谢
Rakesh
Hi,
I want to use log4cxx to log entries in log file or elsewhere for my application.I am very new to log4cxx.Can any one tell me how i will add all these in VS2005 in my application.
I tried in google but i did not see any step by step instruction to do this.
What all i know is
1)one XML file to be included in project.
2)log4cxx header files.
or may be some or one dll files.
I got one log4cxx.dll file but how to use it i dont know.;-(
or any other way i will have to follow???
in some examples on net..there is
#include<log4cxx/logger.h>
but this will work as headerfiles are absent..
whr i put that XML configuration file?
can any one give a small example of logging....i mean from installation to loggig
Thanks in Advance
Rakesh
推荐答案
Google!
在这种情况下,请尝试使用快速的Google:我做到了. [< ^ ]
最受欢迎的是: Apache log4cxx的简短介绍 [
Google!
In cases like this, try a quick google : I did.[^]
The top hit was this: Short introduction to Apache log4cxx[^]
If in doubt, do a little research yourself - it can be a lot quicker than asking a question.
检查以下链接
http://www.dreamcubes.com/b2/software-development /10/log4cxx-tutorial-in-visual-c/ [ http://www.yolinux.com/TUTORIALS/Log4cxx.html [
Check following links
http://www.dreamcubes.com/b2/software-development/10/log4cxx-tutorial-in-visual-c/[^]
http://www.yolinux.com/TUTORIALS/Log4cxx.html[^]
非常感谢您的答复
#include< log4cxx/logger.h>
但这不起作用,因为没有头文件..
而我把那个XML配置文件放了吗?
Rakesh
Many Thanks for replying
#include<log4cxx/logger.h>
but this will not work as headerfiles are absent..
and whr i put that XML configuration file?
Rakesh
这篇关于在VS2005中使用log4cxx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!