欢迎加入 Spring cloud 交流群: 617143034
简介
本博客站点已全量迁移至 DevDengChao 的博客 https://blog.dengchao.fun , 后续的新内容将优先在自建博客站进行发布, 欢迎大家访问.
最近在使用阿里云的函数计算时发现 Spring boot 输出的日志中包含一些乱码, 为了移除这些乱码使日志美观易读, 于是研究了一下相关的内容.
实现方式
关闭 ansi 效果即可:
spring.output.ansi.enabled=never
参考
- How to configure logback in spring boot for ansi color feature @StackOverflow
- Logging color coded output @docs.spring.io
- ANSI escape code @Wikipedia
- Debian environment variables @wiki.debian.org
- Linux下$TERM环境变量的不同取值含义 @CSDN
推广
欢迎加入 Spring cloud 交流群: 617143034
欢迎大家使用 阿里云优惠券, 新购续费更优惠: