小小的验证项目居然想要我搭建日志框架?没门,直接打印测试就行
maven依赖门面定义API和simple实现方式
org.slf4j slf4j-api2.0.0-alpha6 org.slf4j slf4j-simple2.0.0-alpha6
在resource下新建文件名叫simplelogger.properties内容如下
# 全局日志默认级别 org.slf4j.simpleLogger.defaultLogLevel=DEBUG # 指定包路径下class字节码产生日志的展示级别,不配置默认是INFO # org.slf4j.simpleLogger.log.com.baomidou.mybatisplus.generator=DEBUG # 显示时间 org.slf4j.simpleLogger.showDateTime=true # 时间格式 org.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss # 线程名 # org.slf4j.simpleLogger.showThreadName=true # 包路径 org.slf4j.simpleLogger.showLogName=true # 短的包路径 #org.slf4j.simpleLogger.showShortLogName=false



