maleo-foundation 0.2.23__py3-none-any.whl → 0.2.24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- maleo_foundation/enums.py +4 -1
- maleo_foundation/managers/service.py +7 -0
- {maleo_foundation-0.2.23.dist-info → maleo_foundation-0.2.24.dist-info}/METADATA +1 -1
- {maleo_foundation-0.2.23.dist-info → maleo_foundation-0.2.24.dist-info}/RECORD +6 -6
- {maleo_foundation-0.2.23.dist-info → maleo_foundation-0.2.24.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.2.23.dist-info → maleo_foundation-0.2.24.dist-info}/top_level.txt +0 -0
maleo_foundation/enums.py
CHANGED
@@ -83,11 +83,13 @@ class BaseEnums:
|
|
83
83
|
AUTHENTICATION = "authentication"
|
84
84
|
|
85
85
|
class ServiceLoggerType(StrEnum):
|
86
|
+
REPOSITORY = "repository"
|
86
87
|
DATABASE = "database"
|
87
88
|
APPLICATION = "application"
|
88
89
|
|
89
90
|
class LoggerType(StrEnum):
|
90
91
|
MIDDLEWARE = "middleware"
|
92
|
+
REPOSITORY = "repository"
|
91
93
|
DATABASE = "database"
|
92
94
|
APPLICATION = "application"
|
93
95
|
CLIENT = "client"
|
@@ -103,7 +105,8 @@ class BaseEnums:
|
|
103
105
|
NOTSET = logging.NOTSET
|
104
106
|
|
105
107
|
class CacheType(StrEnum):
|
106
|
-
|
108
|
+
REPOSITORY = "repository"
|
109
|
+
ROUTER = "router"
|
107
110
|
CLIENT = "client"
|
108
111
|
|
109
112
|
class CacheTTL(IntEnum):
|
@@ -129,6 +129,7 @@ class Configurations(BaseModel):
|
|
129
129
|
|
130
130
|
class Loggers(BaseModel):
|
131
131
|
application:ServiceLogger = Field(..., description="Application logger")
|
132
|
+
repository:ServiceLogger = Field(..., description="Repository logger")
|
132
133
|
database:ServiceLogger = Field(..., description="Database logger")
|
133
134
|
middleware:MiddlewareLoggers = Field(..., description="Middleware logger")
|
134
135
|
|
@@ -297,6 +298,11 @@ class ServiceManager:
|
|
297
298
|
service_key=self._configs.service.key,
|
298
299
|
**self._log_config.model_dump()
|
299
300
|
)
|
301
|
+
repository = ServiceLogger(
|
302
|
+
type=BaseEnums.LoggerType.REPOSITORY,
|
303
|
+
service_key=self._configs.service.key,
|
304
|
+
**self._log_config.model_dump()
|
305
|
+
)
|
300
306
|
#* Middleware's loggers
|
301
307
|
base = MiddlewareLogger(
|
302
308
|
middleware_type=BaseEnums.MiddlewareLoggerType.BASE,
|
@@ -311,6 +317,7 @@ class ServiceManager:
|
|
311
317
|
middleware = MiddlewareLoggers(base=base, authentication=authentication)
|
312
318
|
self._loggers = Loggers(
|
313
319
|
application=application,
|
320
|
+
repository=repository,
|
314
321
|
database=database,
|
315
322
|
middleware=middleware
|
316
323
|
)
|
@@ -2,7 +2,7 @@ maleo_foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
2
2
|
maleo_foundation/authentication.py,sha256=kJfuRKgQY5cjmn0r36z4a4jF4bg7UifZ9D9mgMMnTsw,1840
|
3
3
|
maleo_foundation/authorization.py,sha256=euq24UEhTaimmM24Ies-kZF1zqVwM_x0Zox_6k7zyqI,281
|
4
4
|
maleo_foundation/constants.py,sha256=aBmEfWlBqZxi0k-n6h2NM1YRLOjMnheEiLyQcjP-zCQ,1164
|
5
|
-
maleo_foundation/enums.py,sha256=
|
5
|
+
maleo_foundation/enums.py,sha256=SQKrX4nHuVocMixgOxqy1Z3Rrf7t7aPu9nf6pk7xzEk,3559
|
6
6
|
maleo_foundation/extended_types.py,sha256=pIKt-_9tby4rmune3fmWcCW_mohaNRh_1lywBmdc-L4,301
|
7
7
|
maleo_foundation/types.py,sha256=aKXnIgEhYGSfFqNMGLc4qIKGkINBRpkOo9R9cb2CbwI,2414
|
8
8
|
maleo_foundation/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -33,7 +33,7 @@ maleo_foundation/expanded_types/encryption/rsa.py,sha256=Esf_H8nMz2kOLAWa3M7dlD-
|
|
33
33
|
maleo_foundation/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
34
|
maleo_foundation/managers/db.py,sha256=cpY1IOiUytT9XXYtzS0E9OSYOuB7jBKo0XHe__uI1Jg,5340
|
35
35
|
maleo_foundation/managers/middleware.py,sha256=ODIQU1Hpu-Xempjjo_VRbVtxiD5oi74mNuoWuDawRh0,4250
|
36
|
-
maleo_foundation/managers/service.py,sha256=
|
36
|
+
maleo_foundation/managers/service.py,sha256=i__-ISJ9YQi08nMRl6_j8jOVJB--A-tpGwWPF3FvoqM,18991
|
37
37
|
maleo_foundation/managers/cache/__init__.py,sha256=CeY0oof2bVl_v5WS-FKXNwn2gf3xrEMfUsHK9cHo59s,471
|
38
38
|
maleo_foundation/managers/cache/redis.py,sha256=vUpQUAKP_wZb_Fr1wEzICDCPQyBW8jnZ-pktl6AIdmY,1021
|
39
39
|
maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -115,7 +115,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
115
115
|
maleo_foundation/utils/loaders/credential/google.py,sha256=SKsqPuFnAiCcYLf24CxKnMybhVHpgqnq1gGSlThqjts,994
|
116
116
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
117
117
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
118
|
-
maleo_foundation-0.2.
|
119
|
-
maleo_foundation-0.2.
|
120
|
-
maleo_foundation-0.2.
|
121
|
-
maleo_foundation-0.2.
|
118
|
+
maleo_foundation-0.2.24.dist-info/METADATA,sha256=TSu32C-FotlV06Xf7GsaGSrw6yQjC-g8Q2_DP_NyFaw,3598
|
119
|
+
maleo_foundation-0.2.24.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
120
|
+
maleo_foundation-0.2.24.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
121
|
+
maleo_foundation-0.2.24.dist-info/RECORD,,
|
File without changes
|
File without changes
|