Skip to content

Commit 07635f9

Browse files
authored
Use slf4j instead of log4j in javaagent example (#518)
1 parent 5bc9778 commit 07635f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javaagent/src/main/java/io/opentelemetry/example/javagent/Controller.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
import io.opentelemetry.api.trace.Tracer;
1010
import io.opentelemetry.context.Scope;
1111
import java.util.Random;
12-
import org.apache.logging.log4j.LogManager;
13-
import org.apache.logging.log4j.Logger;
12+
import org.slf4j.Logger;
13+
import org.slf4j.LoggerFactory;
1414
import org.springframework.beans.factory.annotation.Autowired;
1515
import org.springframework.web.bind.annotation.GetMapping;
1616
import org.springframework.web.bind.annotation.RestController;
1717

1818
@RestController
1919
public class Controller {
2020

21-
private static final Logger LOGGER = LogManager.getLogger(Controller.class);
21+
private static final Logger LOGGER = LoggerFactory.getLogger(Controller.class);
2222
private final AttributeKey<String> ATTR_METHOD = AttributeKey.stringKey("method");
2323

2424
private final Random random = new Random();

0 commit comments

Comments
 (0)