当前位置:网站首页>ConsoleAppender简介说明
ConsoleAppender简介说明
2022-07-28 09:23:00 【qq_25073223】
转自:
下文笔者讲述logback中ConsoleAppender的简介说明,如下所示:
ConsoleAppender的功能
ConsoleAppender的功能将日志输出到控制台
ConsoleAppender的属性说明
<encoder>:对日志进行格式化。 <target>:字符串System.out(默认)或System.err
例
//把>=DEBUG级别的日志都输出到控制台
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern>
</encoder>
</appender>
<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>
</configuration>边栏推荐
- JDBC connection database
- Inside database system distributed system
- Buckle 376 swing sequence greedy
- Personal blog applet
- 《PyTorch深度学习实践》第九课多分类问题(手写数字MNIST)
- 译文推荐 | 调试 BookKeeper 协议 - 无界 Ledger
- With frequent data leakage and deletion events, how should enterprises build a security defense line?
- 业务可视化-让你的流程图'Run'起来(4.实际业务场景测试)
- Can multithreading optimize program performance?
- MATLAB的数列与极限运算
猜你喜欢

Opencv4.60 installation and configuration

网络工程——软科中国大学专业排名

JDBC connection database

Domain events and integration events are not so big

Machine learning (10) -- hypothesis testing and regression analysis

go语言切片Slice和数组Array对比panic runtime error index out of range问题解决

软件测试与质量学习笔记2----黑盒测试

Conditions and procedures of stock index futures account opening

Leetcode - hashtable topic

OSS直连上传-Rails服务实践
随机推荐
Go language slice vs array panic runtime error index out of range problem solving
实验四 使用fdisk对硬盘进行管理
多线程一定能优化程序性能吗?
JDBC连接数据库
SQL Server、MySQL主从搭建,EF Core读写分离代码实现
如何使用JWT进行身份验证与授权
Mock.js
Inside database system distributed system
使用Xposed对软件进行破解
Introduction to SD card (based on spec3.0)
C signed and unsigned byte variables
对象到对象映射-AutoMapper
With frequent data leakage and deletion events, how should enterprises build a security defense line?
How to learn so many conceptual things in database? Seeking method
ShardingSphere简介(一)
3分钟告诉你如何成为一名黑客|零基础到黑客入门指南,你只需要掌握这五点能力
Word segmentation results of ES query index fields
[multithreading] the underlying principle of println method
FPGA development learning open source website summary
Arouter source code analysis (II)