Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
feat: ✨ add logger to factory
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Jul 2, 2022
1 parent fbc648f commit b631662
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/factory.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
from utils.logger import Logger
from utils.config import Config
from utils.requester import Requester
from utils.constant import NAME, PATH


class Factory:
def __init__(self):
self.__logger = Logger(NAME, PATH.LOG_FILE_PATH)
self.__config = Config()
self.__requester = Requester(self)

@property
def logger(self):
return self.__logger

@property
def config(self):
return self.__config
Expand Down

0 comments on commit b631662

Please sign in to comment.