I have some webservices in my application and i want to log them to diferent files, based on the webservice name. For that i am creating loggers with
myLogger =
Loggers are already cached by log4j using the default log repository (Hierarchy). In other words, it's just a hashtable lookup.
Hierarchy
However, in my experience you tend to make the logger static, so it only ends up being called once per class anyway.