AFAIK you can use the APIs of Commons Logging, SLF4J, Log4j or JBoss Logging. Wildfly adds implementations for these APIs to each deployment (see Developer Guide ) .
I've used SLF4J. The applications didn't contain any implementations of logging APIs (i.e. no dependency on SLF4J implementations and transitive logging dependencies were set to scope "provided" in the POM).