0

I'm making a small web application by using ASP.Net Framework with log4net and Autofac 4.0

My application has to have multiple logging instance with different settings for each of them, i.e: FileLogger, DatabaseLogger, ...

I'm using log4net module for autofac :

Can anyone help me to solve this problem please? Thank you,

jignesh Vadadoriya
  • 3,244
  • 3
  • 18
  • 29
Redplane
  • 2,971
  • 4
  • 30
  • 59
  • What is the problem you want to solve? And what have you tried? – Peter Dec 02 '16 at 11:20
  • there are some controllers I want to write log information to file, there are some I want to write log information to database. Therefore, I need multiple log instance. – Redplane Dec 02 '16 at 18:23
  • You should update your question with the info @Peter asked about. Also, [have you read the docs](http://autofac.readthedocs.io/en/latest/faq/select-by-context.html)? – Travis Illig Dec 03 '16 at 16:24
  • https://www.codeproject.com/Articles/140911/log-net-Tutorial here you can get a basic turial. however for more help you should specify your question – jan-seins Dec 05 '16 at 19:31

0 Answers0