Skip to content

Enabling Kani Logging #17

Answered by zhudotexe
dcssi asked this question in Q&A
Oct 3, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Good point - the docs only mention this in the context of chat_in_terminal since we didn't want kani's loggers to clobber developers' logging setups in a prod environment (since logging.basicConfig is fairly nuclear). In a larger application (i.e. not using the chat_in_terminal dev utils), you'd want to initialize the logging yourself.

python.org has a pretty good overview of the logging module, but depending on your use case, you might be interested in overriding Kani.add_to_history to log messages instead.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by zhudotexe
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