解决方案:新建文件log4j.properties

log4j.rootLogger=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n 

 效果图:

最新文章

  1. 【WP 8.1开发】如何处理摄像头翻转的问题
  2. RESTClient使用
  3. C语言 链表的使用(链表的增删查改,链表逆转,链表排序)
  4. Intent官方教程(1)简介和作用
  5. nginx启动过程分析
  6. shodan
  7. 如何让HTML在手机上实现直接拨打电话以及发送短信?
  8. MongoDB学习2
  9. sqlmap基础使用
  10. Python使用ctypes访问C代码
  11. Linux 下搭建www服务器
  12. MyBatis学习笔记1--初识MyBatis
  13. Python3源码学习-requests
  14. JDBC四种驱动程序
  15. PHP数学常用函数
  16. js try catch 的使用,容错处理
  17. __new__() 与__init__()的区别
  18. pselect 函数
  19. 20155331 《网络对抗》 Exp6 信息搜集与漏洞扫描
  20. C语言函数参数传递

热门文章

  1. vue-parent-child-lifecycle-order
  2. MongoDB Manually config
  3. Flutter & App
  4. 微信小程序 components
  5. 关于TCP的Total Length
  6. MySQL切换版本踩坑记录(包括恢复数据方法)
  7. 进阶高阶IoT架构-教你如何简单实现一个消息队列
  8. C# NOPI 项目实战(经典)(可下载项目源码)
  9. 遇见ZooKeeper:初识
  10. 翻译:《实用的Python编程》02_06_List_comprehension