18 lines
482 B
Java
18 lines
482 B
Java
// validating/SLF4JLogging.java
|
|
// (c)2020 MindView LLC: see Copyright.txt
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
// Visit http://OnJava8.com for more book information.
|
|
import org.slf4j.*;
|
|
|
|
public class SLF4JLogging {
|
|
private static Logger log =
|
|
LoggerFactory.getLogger(SLF4JLogging.class);
|
|
public static void main(String[] args) {
|
|
log.info("hello logging");
|
|
}
|
|
}
|
|
/* Output:
|
|
2017-05-09T06:07:53.418
|
|
[main] INFO SLF4JLogging - hello logging
|
|
*/
|