本文介绍了在VS2005中使用log4cxx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想使用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

推荐答案




这篇关于在VS2005中使用log4cxx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 12:48