Skip to content

Commit

Permalink
Update logger documentation (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
tornede authored Jan 23, 2024
2 parents 34e1c6d + de8a754 commit 9a29652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/source/usage/execution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Additionally, further information can be given to ``PyExperimenter``:
- ``table_name``: The name of the database table to manage the experiments. If given, it will overwrite the table name given in the `experiment_configuration_file_path`.
- ``use_codecarbon``: Specifies if :ref:`CodeCarbon <experiment_configuration_file_codecarbon>` will be used to track experiment emissions. Default: ``True``.
- ``name``: The name of the experimenter, which will be added to the database table of each executed experiment. If using the PyExperimenter on an HPC system, this can be used for the job ID, so that the according log file can easily be found. Default: ``PyExperimenter``.
- ``logger_name``: The name of the logger, which will be used to log information about the execution of the PyExperimenter. If there already exists a logger with the given ``logger_name``, it will be used instead. However, the ``log_file`` will be ignored in this case. The logger will then be passed to every component of ``PyExperimenter``, so that all information is logged to the same file. Default: ``py-experimenter``.
- ``log_level``: The log level of the logger. Default: ``INFO``.
- ``log_file``: The path of the log file. Default: ``py-experimenter.log``.


-------------------
Expand Down
2 changes: 1 addition & 1 deletion py_experimenter/experimenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self,
:param name: The name of the PyExperimenter, which will be logged in the according column in the database table.
Defaults to 'PyExperimenter'.
:type name: str, optional
:param logger_name: The name of the logger. Defaults to 'PyExperimenter'.
:param logger_name: The name of the logger. Defaults to 'py-experimenter'.
:type logger_name: str
:param log_level: The log level of the logger. Defaults to logging.INFO.
:type log_level: Union[int,str]
Expand Down

0 comments on commit 9a29652

Please sign in to comment.