[FEAT] Logging
Closed this issue · 1 comments
jplacht commented
Is your feature request related to a problem? Please describe.
Logging functionalities should be provided in fio_wrapper
.
Describe the solution you'd like
Basic _do logging
Describe alternatives you've considered
loguru
structlog
Additional context
jplacht commented
Testing with example.py
:
logging.basicConfig(
level=logging.DEBUG,
filename="example.log",
filemode="w",
)
DEBUG:fio_wrapper.fio_adapter:Calling (POST) https://rest.fnar.net/planet/search with params: None | data: {'Materials': ['FEO', 'LST'], 'IncludeRocky': True, 'IncludeGaseous': False, 'IncludeLowGravity': False, 'IncludeHighGravity': False, 'IncludeLowPressure': False, 'IncludeHighPressure': False, 'IncludeLowTemperature': False, 'IncludeHighTemperature': False, 'MustBeFertile': True, 'MustHaveLocalMarket': False, 'MustHaveChamberOfCommerce': False, 'MustHaveWarehouse': False, 'MustHaveAdministrationCenter': False, 'MustHaveShipyard': False, 'DistanceChecks': ['Katoa', 'Promitor', 'Montem']}