-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
再現方法
Logback を用いてログ出力を行う適当なプロジェクト(my-projectと呼びます)を準備します。
Logback の設定ファイル my-project/src/main/resources/logback.xml を作成します。
lerna-util-sequence を依存ライブラリに追加し、
<pattern>...</pattern> の内容を例えば次のように変更しても、
出力されるログの書式が変わらないことが確認できます。
<pattern>%msg\n</pattern>
lerna-util-sequence を依存ライブラリから削除すると、
上記の現象は発生しないことが確認できます。
原因候補
次のLogback設定が使用されているようにみえます。
| <pattern>%date{HH:mm:ss.SSS}\t%-5level\t%logger\t%X{akkaSource:--}\t%X{traceId:--}\t%X{tenantId:--}\t%msg%xEx%nopex%n</pattern> |
Chapter 3: Configuration を確認する限り、クラスパスにある logback-test.xml は logback.xml よりも優先されるようです。
https://logback.qos.ch/manual/configuration.html#auto_configuration
解決方法
次のファイルを削除することで解決できるかもしれません。
https://github.com/lerna-stack/lerna-app-library/blob/452fc76212bf3df258e0b5f32fbfa0ea5b0132f1/lerna-util-sequence/src/main/resources/logback-test.xml
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working