首页 > 代码库 > java如何LOG打印出日志信息

java如何LOG打印出日志信息

<dependency>-->
<!--<groupId>org.slf4j</groupId>-->
<!--<artifactId>slf4j-log4j12</artifactId>-->
<!--<version>1.6.4</version>-->
</dependency>
private static final Logger LOG = LoggerFactory.getLogger(EmbeddedLauncher.class);
LOG.info( "receive a device event from clientID <{}>,  payload: {}", msg.getClientID(),  new String(msg.getPayload().array));

java如何LOG打印出日志信息