diff --git a/panaetius/config.py b/panaetius/config.py index 3a0bc30..f616aa3 100644 --- a/panaetius/config.py +++ b/panaetius/config.py @@ -28,7 +28,6 @@ class Config: self._missing_config = True return {} - # TODO: fix the return error def get_value( self, key: str, default: Any, mask: bool, coerce: bool = False ) -> Any: @@ -40,6 +39,12 @@ class Config: # no config file, look for env vars return self._get_env_value(env_key, default, coerce) + def _get_config_value_key_split_once(self): + pass + + def _get_config_value_key_split_twice(self): + pass + def _get_config_value( self, env_key: str, key: str, default: Any, mask: bool, coerce: bool = False ) -> Any: diff --git a/panaetius/logging.py b/panaetius/logging.py new file mode 100644 index 0000000..f050abf --- /dev/null +++ b/panaetius/logging.py @@ -0,0 +1,2 @@ +import logging +from logging.handlers import RotatingFileHandler diff --git a/rewrite.todo b/rewrite.todo index deed8d0..6214ac2 100644 --- a/rewrite.todo +++ b/rewrite.todo @@ -1,12 +1,16 @@ Coding: No Config File: - ☐ Handle if a bool is passed in as a default + ✔ Handle if a bool is passed in as a default @done(21-10-16 05:25) needs to be lower case in the toml, need a check for this Config File: - ☐ Handle if a bool is passed in as a default + ✔ Handle if a bool is passed in as a default @done(21-10-16 05:25) needs to be lower case in the toml, need a check for this + Logging: + ☐ Create SimpleLogger, AdvancedLogger, CustomLogger classes + should simply have the different logging strings to output + should both specify whether to save to file or not Documentation: ☐ Rewrite documentation using `mkdocs` and using `.md`. @2h