diff options
Diffstat (limited to 'pyecsca/misc/cfg.py')
| -rw-r--r-- | pyecsca/misc/cfg.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pyecsca/misc/cfg.py b/pyecsca/misc/cfg.py index ee9c95d..f73eea9 100644 --- a/pyecsca/misc/cfg.py +++ b/pyecsca/misc/cfg.py @@ -121,6 +121,12 @@ class ECConfig: raise ValueError("Bad Mod implementaiton, can be one of 'python', 'gmp' or 'symbolic'.") self._mod_implementation = value +@public +class LoggingConfig: + """Logging configuration.""" + + enabled: bool = True + """Whether logging is enabled.""" @public class Config: @@ -128,9 +134,12 @@ class Config: ec: ECConfig """Configuration for the :py:mod:`pyecsca.ec` package.""" + log: LoggingConfig + """Logging configuration.""" def __init__(self): self.ec = ECConfig() + self.log = LoggingConfig() _config: ContextVar[Config] = ContextVar("config", default=Config()) |
