Skip to content

Commit b740262

Browse files
committed
111
1 parent e93544d commit b740262

File tree

1 file changed

+6
-3
lines changed
  • runner-feedback-agent/src/main/java/com/github/izerui/context

1 file changed

+6
-3
lines changed

runner-feedback-agent/src/main/java/com/github/izerui/context/Context.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public final class Context {
2222
AnsiOutput.setEnabled(AnsiOutput.Enabled.ALWAYS);
2323
properties.setEnabled(getBoolProperty("feedback.enabled", true));
2424
properties.setDebugger(getBoolProperty("feedback.debugger", false));
25+
properties.setPackages(getArrayProperty("feedback.packages", "com.yj2025", "com.ecworking"));
2526
properties.setIgnorePackages(getArrayProperty("feedback.ignore-packages", "com.github.izerui"));
2627
properties.setIgnoreMethods(getArrayProperty("feedback.ignore-methods", "afterExecuted"));
2728
properties.setOutputFormat(getStringProperty("feedback.output-format", "${success} ${time}${count} ${package}(${file}:${line})${method}${descriptor} ${thread}"));
28-
properties.setPackages(getArrayProperty("feedback.packages", "com.yj2025", "com.ecworking"));
2929
properties.setShowGetter(getBoolProperty("feedback.show-getter", false));
3030
properties.setShowSetter(getBoolProperty("feedback.show-setter", false));
3131
}
@@ -70,9 +70,12 @@ public static AgentProperties getProperties() {
7070
public static void printAfterAgent() {
7171
System.out.println("☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟☟");
7272
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "插桩: runner-feedback-agent 成功!"));
73-
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.packages](拦截包名,多个逗号分隔): " + Arrays.toString(properties.getPackages())));
74-
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.output-format](输出格式): " + properties.getOutputFormat()));
73+
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.enabled](是否启用): " + Boolean.valueOf(properties.isEnabled())));
7574
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.debugger](是否输出调试信息): " + properties.isDebugger()));
75+
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.packages](拦截的起始包名,多个逗号分隔): " + Arrays.toString(properties.getPackages())));
76+
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.ignore-packages](忽略的起始包名,多个逗号分隔): " + Arrays.toString(properties.getPackages())));
77+
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.ignore-methods](忽略的方法名,多个逗号分隔): " + Arrays.toString(properties.getPackages())));
78+
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.output-format](输出格式): " + properties.getOutputFormat()));
7679
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.show-getter](是否拦截并显示get方法): " + properties.isShowGetter()));
7780
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "[feedback.show-setter](是否拦截并显示set方法): " + properties.isShowSetter()));
7881
System.out.println(AnsiOutput.toString(AnsiColor.BRIGHT_WHITE, "使用@Tracer('标记方法')就可以拦截调用链并输出树状结构!"));

0 commit comments

Comments
 (0)