mirror of
https://github.com/triqs/dft_tools
synced 2024-09-12 05:38:31 +02:00
fix sphinx doc build by adding a small init function
This commit is contained in:
parent
aa0162d810
commit
15746b1d4d
@ -43,6 +43,12 @@ from .plotools import generate_plo, output_as_text
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
class PloFormatter(logging.Formatter):
|
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):
|
def format(self, record):
|
||||||
# Save the original format
|
# Save the original format
|
||||||
_style = self._style
|
_style = self._style
|
||||||
|
Loading…
Reference in New Issue
Block a user