Skip to content

Commit

Permalink
fix logger name. (#338)
Browse files Browse the repository at this point in the history
* fix logger name.

* fix logger name
  • Loading branch information
HidekiSugimoto189 authored Sep 25, 2024
1 parent 35315ff commit fada5d1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/main/java/jp/co/future/uroborosql/client/SqlREPL.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
4 changes: 2 additions & 2 deletions src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
<appender-ref ref="STDOUT" />
</logger>

<logger name="jp.co.future.uroborosql.sql.parser" level="INFO" additivity="false">
<logger name="jp.co.future.uroborosql.parser" level="INFO" additivity="false">
<appender-ref ref="STDOUT" />
</logger>

<logger name="jp.co.future.uroborosql.sql.coverage" level="INFO" additivity="false">
<logger name="jp.co.future.uroborosql.coverage" level="INFO" additivity="false">
<appender-ref ref="CoverageLog" />
</logger>

Expand Down

0 comments on commit fada5d1

Please sign in to comment.