Logically these are entirely two different things.
SLF4J (Simple Logging Facade For Java) is not a logging component and it does not do the actual logging. It is only an abstraction layer to an underlying logging component. Where as Log4j is a logging component and it does the logging instructed to do.
SLF4J (Simple Logging Facade For Java) is not a logging component and it does not do the actual logging. It is only an abstraction layer to an underlying logging component. Where as Log4j is a logging component and it does the logging instructed to do.