Skip to content

Commit

Permalink
fixing indenting and code block to python
Browse files Browse the repository at this point in the history
  • Loading branch information
lisagoodrich authored Oct 1, 2024
1 parent 4748d2b commit 8e415e3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/Users_Guide/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ settings across all modules within METcalcpy.
* Key Feature: :code:`setup_logging` Function

* The :code:`setup_logging` function is the core of **logging_config.py**. It initializes
and configures the logger instance based on parameters specified in a YAML configuration
file. This function reads logging settings such as :code:`log_dir`,
:code:`log_filename`, and :code:`log_level` from the YAML file and sets
up Python's logging module accordingly.
and configures the logger instance based on parameters specified in a YAML configuration
file. This function reads logging settings such as :code:`log_dir`,
:code:`log_filename`, and :code:`log_level` from the YAML file and sets
up Python's logging module accordingly.
* By isolating the logging configuration in this script, it becomes easier to
manage and update logging behavior without altering the core logic of other modules.
manage and update logging behavior without altering the core logic of other modules.

Example Integration in **agg_stat.py**:

.. code-block:: ini
.. code-block:: py
from metcalcpy.logging_config import setup_logging
Expand All @@ -55,3 +55,5 @@ the user's settings.





0 comments on commit 8e415e3

Please sign in to comment.