17 lines
390 B
Java
17 lines
390 B
Java
package com.baeldung.logback;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
public class LogbackExample {
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(LogbackExample.class);
|
|
|
|
public static void main(String[] args) {
|
|
logger.debug("Debug log message");
|
|
logger.info("Info log message");
|
|
logger.error("Error log message");
|
|
}
|
|
|
|
}
|