locked
data base dose not fill in Log4Net RRS feed

  • Question

  • User382878699 posted

    hi

    i use log4net . 

    1 - install log4Net from nuget

    2 - create script for creating table log

    3 - I put tag <log4net> and declare connection strings. and bufferSize value is "1" . I set <add key="log4net.Internal.Debug" value="true"/>  too .

    4 - In Index :

    public ActionResult Index()
            {
                log4net.Config.XmlConfigurator.Configure();
                var log = LogManager.GetLogger("logger");
                log.Info("application start");
               
                return View();
            }

    but my data base dose not fill . 

    Monday, January 19, 2015 1:14 AM

All replies