LogManager is a class has static methods that are used by a client to request a logger instance. The GetLogger method is used to retrieve a logger.
The GetLogger method return the object of type ILog which contains methods for logging at different levels and also has properties for determining if those logging levels are enabled in the current configuration.
Hence you capturing data using ILog variable and typeof(AccountControoler) means you will get the log of AccountController.
typeof() :- Always returns the full Namespace with the Name of that type.
Surya KantRank #956 · 2.1K pointsPosted Aug 29, 2016, 9:04 PM EDT
LogManager is a class has static methods that are used by a client to request a logger instance. The GetLogger method is used to retrieve a logger.The GetLogger method return the object of type ILog which contains methods for logging at different levels and also has properties for determining if those logging levels are enabled in the current configuration.