当前位置:网站首页>Some tips for printing logs
Some tips for printing logs
2022-07-26 18:24:00 【JagTom】
1. Use placeholders ﹐ Instead of string splicing
String name=" Xiaohong ";
log.info("hello from {}",name); // Use placeholders
log.ingo("hello from"+name); // Use string concatenation
/*
More standardized with placeholders , And placeholder performance is better , Reduce the loss of performance
*/
2. Judge debug Mode on
if(log.isDebugEnabled()){
log.info("hello from {}",name);
}边栏推荐
- Greedy - 455. Distribute cookies
- SSM practice day 5
- 我要开中信的证券账户找渠道的经理开安全吗?
- 跟我学 UML 系统建模
- The faith of circle justice
- LeetCode50天刷题计划(Day 5—— 最长回文子串 10.50-13:00)
- Linked list - the penultimate K nodes
- Meta Cambria手柄曝光,主动追踪+多触觉回馈方案
- Leetcode 50 day question brushing plan (day 2 - the longest substring without repeated characters 10.00-12.00)
- PS_1_认识主界面_新建文档(分辨率)_打开保存(序列动画)
猜你喜欢

5、 Parameter server principle, code implementation

Distributed link tracking Jaeger's use in golang

The second day of SSM practice_ Project split moudle_ Basic addition, deletion, modification and query_ Batch delete_ One to one cascading query

Relative path and absolute path

Linked list - the penultimate K nodes

Sword finger offer regular expression matching

Hello World

俄语翻译的就业前景怎样 如何做好俄语翻译工作

【静态代码质量分析工具】上海道宁为您带来SonarSource/SonarQube下载、试用、教程

推荐效果不如意,不如试试飞桨图学习
随机推荐
PS_1_认识主界面_新建文档(分辨率)_打开保存(序列动画)
How to switch nodejs versions at will?
[a little knowledge] thread pool
China polyisobutylene Market Research and investment value report (2022 Edition)
数据仓库:详解维度建模之事实表
Vector CANoe Menu Plugin拓展入门
[static code quality analysis tool] Shanghai daoning brings you sonarource/sonarqube download, trial and tutorial
数据库索引的原理,为什么要用 B+树,为什么不用二叉树?
打印日志的一些小技巧
.net CLR GC dynamic loading transient heap threshold calculation and threshold excess calculation
有一说一,阿里P7的薪资待遇是真的香
5、 Parameter server principle, code implementation
Relative path and absolute path
网上炒股,选择在哪里开户比较安全呢?
同步时现实密码不匹配
SQL判断某列中是否包含中文字符、英文字符、纯数字,数据截取
8.1 Diffie-Hellman密钥交换
Linux Installation mysql8.0.29 detailed tutorial
【一知半解】线程池
Become a test / development programmer, Xiao Zhang: reality is coming