Miklos Szeles wrote:I'm also thinking about having a logger-per-class. Won't it cause too much overhead with hundreds of logging classes?
I'm using Java logger. I've asked about the naming because I think obfuscating the code will prevent file based logger configuration whenever I use class names since the class names are obfuscated.
Hundreds of logging classes? I'd guess a non-trivial Java app would have hundreds of thousands of objects. I'm certainly not going to worry about a few hundred loggers. In any case, in general loggers are defined as static, so there's only one for all instances of a class anyway.
If you use
FooBar.class the obfuscator had better darn well know how to handle that--if it can't, you need a *way* better obfuscator.