3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 20:34:38 +01:00

fix sphinx doc build by adding a small init function

This commit is contained in:
Alexander Hampel 2023-04-20 17:43:52 -04:00
parent aa0162d810
commit 15746b1d4d

View File

@ -43,6 +43,12 @@ from .plotools import generate_plo, output_as_text
import logging
class PloFormatter(logging.Formatter):
"""
custom event logger for all output, warnings and debug info
"""
def __init__(self, default):
self._default_formatter = default
def format(self, record):
# Save the original format
_style = self._style