patriksvensson / blackbox

A logging library inspired by log4net, targeting .NET Framework 4 Client Profile.
http://blackbox-project.org
GNU General Public License v3.0
6 stars 1 forks source link

ILogger.Source has limiting type #15

Open rofr opened 12 years ago

rofr commented 12 years ago

A string would allow more flexibility than Type. Should be accompanied by an additional LogKernel.GetLogger(string name) method and a rename of ILogger.Source to ILogger.Name

patriksvensson commented 12 years ago

This would be a breaking change, but I'm still curious why a type isn't enough. The source just indicates what instance type owns the logger and nothing more. Can you give me an example of when a name would be better, since I guess you'll only have one logger per instance?

rofr commented 12 years ago

I'm thinking a logger shared by a group of collaborating objects to simplify configuration like filtering. Also, it would be compatible with NLog