I've seen code that uses log4j
, which acquires logger
for a given Logger
using
static public Logger getLogger(String name)
and
static public Logger getLogger(Class clazz)
with the former api passed explicitly with getSimpleName()
, while the latter uses getName()
on the passed Class
. Is there a difference between these two? Would it affect if I configure various packages to log at different level in log4j.properties file?