Logging.GetLogger
Return a Logger with the specified name. code:cs
var loggerA = Logging.GetLogger("A"); // A is child of Root Logger
var loggerB = Logging.GetLogger("A.B"); // B is child of A
var rootLogger = Logging.GetLogger(""); // Get Root Logger
Return a logger with the specified name.
If specified, the name is typically a dot-separated hierarchical
name like a, a.b or a.b.c.d. Choice of these names is entirely up to the developer who is using logging.
if name is None, return a logger which is the Root Logger of the hierarchy. code:cs
class A {}
code:cs
var loggerA = Logging.GetLogger<A>(); // Same to Logging.GetLogger("A")
ILogger GetLogger<T>(string addtionalName) code:cs
class A {}
code:cs
var loggerB = Logging.GetLogger<A>("B"); // Same to Logging.GetLogger("A.B")