Skip to content

SQLログ出力の制御 #795

Answered by nakamura-to
gikeihi asked this question in Q&A
Jan 18, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

DomaそのものにはSQLログ出力を制御する機能はありません。
Logライブラリで実現するのはいかがですか?
例えばLogbackであれば次のクラスが使えそうです。
https://logback.qos.ch/apidocs/ch/qos/logback/classic/turbo/DynamicThresholdFilter.html

DomaとLogbackを連携させるにはdoma-slf4jを使ってください。下記のドキュメントが参考になると思います。
https://doma.readthedocs.io/en/latest/slf4j-support/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gikeihi
Comment options

Answer selected by gikeihi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants