Skip to content

How can you silence Liesel's "info" messages? #161

Answered by jobrachem
Seb-Lorek asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Seb-Lorek, really nice to see you regularly contributing here 👍

Since we use Python's logging module, I think your desired behavior can be achieved by adjusting the log level.

Consider the following example:

There are five different logging levels. Most of the verbose feedback from liesel can be silenced by setting the logging level to "warning", as in the example above. You can even control the behavior for the logging messages issued by individual submodules, if you replace the logger = logging.getLogger("liesel") above for example with the more specific logger = logging.getLogger("liesel.model.model"). For the sampling messages issued by goose, you might want to set the log level …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Seb-Lorek
Comment options

@jeli2103
Comment options

@jobrachem
Comment options

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