From fada5d197b9b5090278da3e5203e31784dccb8e7 Mon Sep 17 00:00:00 2001 From: Hideki Sugimoto Date: Thu, 26 Sep 2024 02:03:15 +0900 Subject: [PATCH] fix logger name. (#338) * fix logger name. * fix logger name --- src/main/java/jp/co/future/uroborosql/client/SqlREPL.java | 6 +++--- .../uroborosql/log/support/CoverageLoggingSupport.java | 2 +- .../future/uroborosql/log/support/ParserLoggingSupport.java | 2 +- .../uroborosql/log/support/ServiceLoggingSupport.java | 2 +- src/test/resources/logback-test.xml | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/jp/co/future/uroborosql/client/SqlREPL.java b/src/main/java/jp/co/future/uroborosql/client/SqlREPL.java index 21ce26a8..7d629fdf 100644 --- a/src/main/java/jp/co/future/uroborosql/client/SqlREPL.java +++ b/src/main/java/jp/co/future/uroborosql/client/SqlREPL.java @@ -96,12 +96,12 @@ public class SqlREPL implements ReplLoggingSupport { public static void main(final String... args) { ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.log")).setLevel(Level.INFO); ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.setting")).setLevel(Level.ERROR); - ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.performance")).setLevel(Level.INFO); + ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.performance")).setLevel(Level.DEBUG); ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.event")).setLevel(Level.DEBUG); ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.repl")).setLevel(Level.WARN); ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.sql")).setLevel(Level.DEBUG); - ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.sql.parser")).setLevel(Level.ERROR); - ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.sql.coverage")).setLevel(Level.ERROR); + ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.parser")).setLevel(Level.ERROR); + ((Logger) LoggerFactory.getLogger("jp.co.future.uroborosql.coverage")).setLevel(Level.ERROR); var propFile = "repl.properties"; if (args.length != 0) { diff --git a/src/main/java/jp/co/future/uroborosql/log/support/CoverageLoggingSupport.java b/src/main/java/jp/co/future/uroborosql/log/support/CoverageLoggingSupport.java index b83f286f..6e67ef70 100644 --- a/src/main/java/jp/co/future/uroborosql/log/support/CoverageLoggingSupport.java +++ b/src/main/java/jp/co/future/uroborosql/log/support/CoverageLoggingSupport.java @@ -11,5 +11,5 @@ public interface CoverageLoggingSupport extends LoggerBase { /** SQLカバレッジ用ロガー */ - Logger COVERAGE_LOG = LoggerFactory.getLogger("jp.co.future.uroborosql.sql.coverage"); + Logger COVERAGE_LOG = LoggerFactory.getLogger("jp.co.future.uroborosql.coverage"); } diff --git a/src/main/java/jp/co/future/uroborosql/log/support/ParserLoggingSupport.java b/src/main/java/jp/co/future/uroborosql/log/support/ParserLoggingSupport.java index 06a25777..9ef15724 100644 --- a/src/main/java/jp/co/future/uroborosql/log/support/ParserLoggingSupport.java +++ b/src/main/java/jp/co/future/uroborosql/log/support/ParserLoggingSupport.java @@ -11,5 +11,5 @@ public interface ParserLoggingSupport extends LoggerBase { /** パーサーロガー */ - Logger PARSER_LOG = LoggerFactory.getLogger("jp.co.future.uroborosql.sql.parser"); + Logger PARSER_LOG = LoggerFactory.getLogger("jp.co.future.uroborosql.parser"); } diff --git a/src/main/java/jp/co/future/uroborosql/log/support/ServiceLoggingSupport.java b/src/main/java/jp/co/future/uroborosql/log/support/ServiceLoggingSupport.java index 4c53bb17..62107ac5 100644 --- a/src/main/java/jp/co/future/uroborosql/log/support/ServiceLoggingSupport.java +++ b/src/main/java/jp/co/future/uroborosql/log/support/ServiceLoggingSupport.java @@ -11,5 +11,5 @@ public interface ServiceLoggingSupport extends LoggerBase { /** ロガー */ - Logger LOG = LoggerFactory.getLogger("jp.co.future.uroborosql.log.support"); + Logger LOG = LoggerFactory.getLogger("jp.co.future.uroborosql.log"); } diff --git a/src/test/resources/logback-test.xml b/src/test/resources/logback-test.xml index d6027325..b39eb209 100644 --- a/src/test/resources/logback-test.xml +++ b/src/test/resources/logback-test.xml @@ -33,11 +33,11 @@ - + - +