Am configurat aplicatia sa logheze erorile in Event View-er (in cmd rulati eventvwr) unde le vedeti in NorthwindLog in' Application and Services Log'.
In controller trebuie sa adaugati un singur try-catch(vezi HomeController) in fiecare metoda astfel 👍
private log4net.ILog logger = log4net.LogManager.GetLogger(typeof(HomeController));
public ActionResult ...()
{
try
{
...
...
Am configurat aplicatia sa logheze erorile in Event View-er (in cmd rulati eventvwr) unde le vedeti in NorthwindLog in' Application and Services Log'.
In controller trebuie sa adaugati un singur try-catch(vezi HomeController) in fiecare metoda astfel 👍 private log4net.ILog logger = log4net.LogManager.GetLogger(typeof(HomeController));
public ActionResult ...() { try { ... ...