There are several reference pages for configuration of various different logging systems in AEM (e.g. this and this) , but I cant find anything on how to create/inject and use them.
In the wknd project, we see this:
private static final Logger log = LoggerFactory.getLogger(ImageListImpl.class);
log.warn("Could not locate the AEM WCM Core Components List SlingModel via this component's ResourceSuperType. Returning an empty list.");
Is this best practice? It seems to be using slf4j. Is this the AEM system wide default?
What logging injection/usage do people recommend?
How do we switch log levels etc? Can this be done at run time?