From 22afd830adba59b48b71c6b681ac3e38883fab09 Mon Sep 17 00:00:00 2001 From: Marcel Schoengens Date: Wed, 24 Oct 2018 09:24:02 +0200 Subject: [PATCH] Add documentation for logging --- doc/source/getting_started.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/source/getting_started.rst b/doc/source/getting_started.rst index 40e64498..74c5c9da 100644 --- a/doc/source/getting_started.rst +++ b/doc/source/getting_started.rst @@ -398,5 +398,14 @@ or compute posterior probability of each of the models given the observed datase :dedent: 4 +Logging +~~~~~~~ +Sometimes, when running inference schemes it is desired to have a more verbose +logging output. This can be achieved by using Python's standard logger and +setting it to info mode at the beginning of the file. +.. literalinclude:: ../../examples/extensions/models/gaussian_python/pmcabc_gaussian_model_simple.py + :language: python + :lines: 1, 8 + :dedent: 0