Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5eac725
优化 system.err.printlin 输出
kxlv2000 May 19, 2021
c932f0b
优化 system.err.printlin 输出
kxlv2000 May 19, 2021
96809de
fix: 更新为最新的手机号正则表达式匹配 issue#240
Rkyzzy May 20, 2021
88959af
fix 更新了最新的手机正则表达式匹配法则
Rkyzzy May 20, 2021
ebcd7c5
fix 更新了最新的手机号正则表达式匹配法则\
Rkyzzy May 20, 2021
494003a
新增文章 APIJSON教程(一):上手apijson项目,学习apijson语法,并实现持久层配置
TommyLemon May 27, 2021
aecf8f4
English README: optimize format of request json
TommyLemon Jun 6, 2021
fe1e7c7
English README: fix online testing url
TommyLemon Jun 6, 2021
1d01466
English README: add new contributors
TommyLemon Jun 6, 2021
41ba66b
Update README.md
TommyLemon Jun 9, 2021
cdb3bbe
分享演讲新增 QECon 全球软件质量&效能大会 的零代码开发和测试
TommyLemon Jun 9, 2021
c4e6475
feat:log print current time
jun0315 Jun 11, 2021
1e1603a
新增一个贡献者,感谢为日志打印新增对应时间
TommyLemon Jun 11, 2021
f3eea86
贡献者名单新增 jun0315,感谢为日志打印新增对应时间
TommyLemon Jun 11, 2021
c0501d0
新增datasource关键字
Jun 14, 2021
b1b814e
分页:解决 query=2 不兼容 主表 @column:"fun()" 这种包含 SQL 函数的写法;SQL 函数:获取右括号 ) 的位…
TommyLemon Jun 14, 2021
175bd81
分页: 在分页详情 info 内返回查询计划 @explain
TommyLemon Jun 14, 2021
97e9d60
conflict fixed
chenyanlann Aug 1, 2021
699063d
Merge branch 'Tencent-master'
chenyanlann Aug 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
优化 system.err.printlin 输出
issue Tencent#232
  • Loading branch information
kxlv2000 authored and chenyanlann committed Aug 1, 2021
commit c932f0b1bac50699bae3e83c99326ea11686db76
19 changes: 19 additions & 0 deletions APIJSONORM/src/main/java/apijson/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ public static void d(String TAG, String msg) {
}
}

/**
* Forced debug
* @param TAG tag
* @param msg debug messages
*/
public static void fd(String TAG, String msg) {
System.err.println(TAG + ".DEBUG: " + msg);
}

/**
* Generate separation line
* @param pre prefix
* @param symbol used for generating separation line
* @param post postfix
*/
public static void sl(String pre,char symbol ,String post) {
System.err.println(pre+new String(new char[48]).replace('\u0000', symbol)+post);
}

/**
* @param TAG
* @param msg
Expand Down
6 changes: 3 additions & 3 deletions APIJSONORM/src/main/java/apijson/orm/AbstractParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ public abstract class AbstractParser<T> implements Parser<T>, ParserCreator<T>,
* 可以通过切换该变量来控制是否打印关键的接口请求内容。保守起见,该值默认为false。
* 与 {@link Log#DEBUG} 任何一个为 true 都会打印关键的接口请求内容。
*/
public static boolean IS_PRINT_REQUEST_STRING_LOG = true;
public static boolean IS_PRINT_REQUEST_STRING_LOG = false;

/**
* 打印大数据量日志的标识。线上环境比较敏感,可以通过切换该变量来控制异常栈抛出、错误日志打印。保守起见,该值默认为false。
* 与 {@link Log#DEBUG} 任何一个为 true 都会打印关键的接口请求及响应信息。
*/
public static boolean IS_PRINT_BIG_LOG = true;
public static boolean IS_PRINT_BIG_LOG = false;

/**
* 可以通过切换该变量来控制是否打印关键的接口请求结束时间。保守起见,该值默认为false。
* 与 {@link Log#DEBUG} 任何一个为 true 都会打印关键的接口请求结束时间。
*/
public static boolean IS_PRINT_REQUEST_ENDTIME_LOG = true;
public static boolean IS_PRINT_REQUEST_ENDTIME_LOG = false;


/**
Expand Down