Skip to content

for a given unit test I wish to enable debug level logging for a specific class. How exactly do I go about that? #559

Answered by TimPigden
TimPigden asked this question in Q&A
Discussion options

You must be logged in to vote

sorry, copilot just told me how!
val logger = Logger("optrak.scalautils.sql.OpkConnection")
logger.withHandler(minimumLevel = Some(scribe.Level.Debug)).replace()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TimPigden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant