Data driven Astrology 💫 Kerykeion is a python library for astrology. It can generate SVG charts and extract all data about a birthchart, a synastry chart and a transit chart.
Allows downstream projects using the logging library to maintain their own logging formatting. Centralizes logging formatting in this project.
Created setup_logging() in kerykeion/utilities.py. This is where the format is set. Takes argument for log level.
Removed logging setup throughout project.
Changed relevant imports simply to import logging.
Changed instances of logger to logging.
Added a call to import and run setup_logging() anywhere where a file was setup to be run directly, i.e. the file contained if __name__ == "__main__":. This has an effect even in files where it's not used as some of those files call others that do.
Removed stray, unused instances and imports for logging.
Solves #85
Allows downstream projects using the
logging
library to maintain their own logging formatting. Centralizes logging formatting in this project.setup_logging()
in kerykeion/utilities.py. This is where the format is set. Takes argument for log level.import logging
.logger
tologging
.setup_logging()
anywhere where a file was setup to be run directly, i.e. the file containedif __name__ == "__main__":
. This has an effect even in files where it's not used as some of those files call others that do.logging
.