hfoxwell / Cats-On-Canvas

Python 3 project for the mass upload of canvas avatars
MIT License
1 stars 2 forks source link

Changes to settings (#9) #13

Closed hfoxwell closed 2 years ago

hfoxwell commented 2 years ago

Config will be Dependancy injected to other objects.

switch to yaml file for convenience.

This should allow for both Dependancy injection. And for multiple types of config.

checked all files for settings instances.

Logger module contains instance of settings that is integrated tightly.

This will be removed.

Settings is now creating factories for the settings based on yaml or json.

will need to implement the yaml parser.

comments and file add

Broke the stupid log file.

Settings is now sucessfully generated from yaml. Settings is parsed from yaml into config object.

The logger is now a class again. Unsure if this will remain. This means that other classes need an injected logger.

Main was made a class, so that it can contain a log instance

Log will now be DI to all other modules

Co-authored-by: ClockFox foxwellhayden@gmail.com