Bael 6011: Spring Boot Logback and Log4j2 Extensions (#13327)
This commit is contained in:
committed by
GitHub
parent
4b3a693263
commit
8f620b2281
+22
@@ -0,0 +1,22 @@
|
||||
package com.baeldung.extensions;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class SpringBootLogbackExtensionsApplication {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SpringBootLogbackExtensionsApplication.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SpringBootLogbackExtensionsApplication.class, args);
|
||||
|
||||
logger.debug("Debug log message");
|
||||
logger.info("Info log message");
|
||||
logger.error("Error log message");
|
||||
logger.warn("Warn log message");
|
||||
logger.trace("Trace log message");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user