What access level should loggers be set to?

access-levels, java, log4j, logging, slf4j

Solution

I think you should use `private` access level, because every class should have its own copy of logger. Otherwise we can't tell which class really did the log record.

Problem

I'm using SLF4J with Log4J underneath. What access levels should I be setting my loggers to? ``` static final Logger logger = LoggerFactory.getLogger(ClassName.class); ```

Original source