基于标志的日志以禁用/启用JPA中的选择SQL查询日志

问题描述

我当前正在记录所有类型的sql语句。我想基于标志启用/禁用select语句的日志记录。 Log4j2.yml文件是-

test("Input change and onerror event",() => {
  const element = render(
    <ButtonInputFile
      label="Select Image"
      variant="outlined"
      size="small"
      onChange={(file: File,data: string | ArrayBuffer) => {
        console.log(file);
      }}
      onError={() => {}}
    ></ButtonInputFile>
  );
});

我还想关闭跟踪/警告日志。我该怎么办?

PS-如果需要更多信息。请发表评论

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)