08:40:07,254 INFO Bytecode provider name : lcg 08:40:07,251 INFO hibernate-configuration section not found in application configuration file asax" if you are building a web application) That is, you have to put the following code snippet somewhere in your application (e.g. I can do that with an assembly level attribute. Now I have to tell my application that I want to use Log4Net. Here I define that all output with a priority of at least DEBUG goes to the console. to the console and to a file) the relevant sections in your config file might look like follows: If you want to log to two different targets (e.g. If you want to use Log4Net to collect logging information generated by NHibernate you have to add the necessary configuration to the config file of your application. Now when running any unit test that involves NHibernate the queries generated by NHibernate will be logged in the output window (be it the unit test runner of Resharper or be it the Output Window of Visual Studio when you use TestDriven). Server=(local) Database=NHibernateFAQ Integrated Security=SSPI
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |