20 lines
557 B
Java
20 lines
557 B
Java
package com.baeldung.component;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
public class OtherComponent {
|
|
|
|
private static final Logger LOG = LoggerFactory.getLogger(OtherComponent.class);
|
|
|
|
public void processData() {
|
|
LOG.trace("This is a TRACE log from OtherComponent");
|
|
LOG.debug("This is a DEBUG log from OtherComponent");
|
|
LOG.info("This is an INFO log from OtherComponent");
|
|
LOG.error("This is an ERROR log from OtherComponent");
|
|
}
|
|
|
|
}
|