maleo-logging 0.0.2__tar.gz → 0.0.4__tar.gz
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_logging-0.0.2 → maleo_logging-0.0.4}/PKG-INFO +2 -2
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/maleo_logging.egg-info/PKG-INFO +2 -2
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/maleo_logging.egg-info/requires.txt +1 -1
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/pyproject.toml +2 -2
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/src/enums.py +1 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/src/logger.py +38 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/LICENSE +0 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/README.md +0 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/maleo_logging.egg-info/SOURCES.txt +0 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/maleo_logging.egg-info/dependency_links.txt +0 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/maleo_logging.egg-info/top_level.txt +0 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/setup.cfg +0 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/src/__init__.py +0 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/src/dtos.py +0 -0
- {maleo_logging-0.0.2 → maleo_logging-0.0.4}/src/google.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: maleo-logging
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.4
|
4
4
|
Summary: Logging package for MaleoSuite
|
5
5
|
Author-email: Agra Bima Yuda <agra@nexmedis.com>
|
6
6
|
License: Proprietary
|
@@ -33,7 +33,7 @@ Requires-Dist: grpcio-status>=1.74.0
|
|
33
33
|
Requires-Dist: identify>=2.6.13
|
34
34
|
Requires-Dist: idna>=3.10
|
35
35
|
Requires-Dist: importlib_metadata>=8.7.0
|
36
|
-
Requires-Dist: maleo-enums>=0.0.
|
36
|
+
Requires-Dist: maleo-enums>=0.0.6
|
37
37
|
Requires-Dist: maleo-types-base>=0.0.2
|
38
38
|
Requires-Dist: maleo-utils>=0.0.3
|
39
39
|
Requires-Dist: mypy_extensions>=1.1.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: maleo-logging
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.4
|
4
4
|
Summary: Logging package for MaleoSuite
|
5
5
|
Author-email: Agra Bima Yuda <agra@nexmedis.com>
|
6
6
|
License: Proprietary
|
@@ -33,7 +33,7 @@ Requires-Dist: grpcio-status>=1.74.0
|
|
33
33
|
Requires-Dist: identify>=2.6.13
|
34
34
|
Requires-Dist: idna>=3.10
|
35
35
|
Requires-Dist: importlib_metadata>=8.7.0
|
36
|
-
Requires-Dist: maleo-enums>=0.0.
|
36
|
+
Requires-Dist: maleo-enums>=0.0.6
|
37
37
|
Requires-Dist: maleo-types-base>=0.0.2
|
38
38
|
Requires-Dist: maleo-utils>=0.0.3
|
39
39
|
Requires-Dist: mypy_extensions>=1.1.0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "maleo-logging"
|
7
|
-
version = "0.0.
|
7
|
+
version = "0.0.4"
|
8
8
|
description = "Logging package for MaleoSuite"
|
9
9
|
authors = [
|
10
10
|
{ name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
|
@@ -39,7 +39,7 @@ dependencies = [
|
|
39
39
|
"identify>=2.6.13",
|
40
40
|
"idna>=3.10",
|
41
41
|
"importlib_metadata>=8.7.0",
|
42
|
-
"maleo-enums>=0.0.
|
42
|
+
"maleo-enums>=0.0.6",
|
43
43
|
"maleo-types-base>=0.0.2",
|
44
44
|
"maleo-utils>=0.0.3",
|
45
45
|
"mypy_extensions>=1.1.0",
|
@@ -305,6 +305,32 @@ class Database(Base):
|
|
305
305
|
)
|
306
306
|
|
307
307
|
|
308
|
+
class Exception(Base):
|
309
|
+
def __init__(
|
310
|
+
self,
|
311
|
+
dir: str,
|
312
|
+
environment: Optional[Environment] = None,
|
313
|
+
service_key: Optional[Key] = None,
|
314
|
+
level=Level.INFO,
|
315
|
+
google_cloud_logging=None,
|
316
|
+
labels: OptionalStringToStringDict = None,
|
317
|
+
aggregate_file_name: OptionalString = None,
|
318
|
+
inidividual_log: bool = True,
|
319
|
+
):
|
320
|
+
super().__init__(
|
321
|
+
dir=dir,
|
322
|
+
type=LoggerType.EXCEPTION,
|
323
|
+
environment=environment,
|
324
|
+
service_key=service_key,
|
325
|
+
client_key=None,
|
326
|
+
level=level,
|
327
|
+
google_cloud_logging=google_cloud_logging,
|
328
|
+
labels=labels,
|
329
|
+
aggregate_file_name=aggregate_file_name,
|
330
|
+
inidividual_log=inidividual_log,
|
331
|
+
)
|
332
|
+
|
333
|
+
|
308
334
|
class Middleware(Base):
|
309
335
|
def __init__(
|
310
336
|
self,
|
@@ -507,6 +533,7 @@ def create(
|
|
507
533
|
Client,
|
508
534
|
Controller,
|
509
535
|
Database,
|
536
|
+
Exception,
|
510
537
|
Middleware,
|
511
538
|
Repository,
|
512
539
|
Service,
|
@@ -587,6 +614,17 @@ def create(
|
|
587
614
|
aggregate_file_name=aggregate_file_name,
|
588
615
|
inidividual_log=inidividual_log,
|
589
616
|
)
|
617
|
+
elif type is LoggerType.EXCEPTION:
|
618
|
+
return Exception(
|
619
|
+
dir=dir,
|
620
|
+
environment=environment,
|
621
|
+
service_key=service_key,
|
622
|
+
level=level,
|
623
|
+
google_cloud_logging=google_cloud_logging,
|
624
|
+
labels=labels,
|
625
|
+
aggregate_file_name=aggregate_file_name,
|
626
|
+
inidividual_log=inidividual_log,
|
627
|
+
)
|
590
628
|
elif type is LoggerType.MIDDLEWARE:
|
591
629
|
return Middleware(
|
592
630
|
dir=dir,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|