izihawa-loglib 1.1.15__py3-none-any.whl → 1.1.16__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.
@@ -9,7 +9,7 @@ class RequestContext:
|
|
9
9
|
request_id_length: int = 12
|
10
10
|
|
11
11
|
def __init__(
|
12
|
-
self, **kwargs:
|
12
|
+
self, **kwargs: Any,
|
13
13
|
):
|
14
14
|
self.default_fields = kwargs
|
15
15
|
if not self.default_fields.get("request_id"):
|
@@ -29,16 +29,16 @@ class RequestContext:
|
|
29
29
|
def generate_request_id(length):
|
30
30
|
return generate_request_id(length)
|
31
31
|
|
32
|
-
def add_default_fields(self, **fields:
|
32
|
+
def add_default_fields(self, **fields: Any) -> None:
|
33
33
|
self.default_fields.update(fields)
|
34
34
|
|
35
|
-
def statbox(self, **kwargs:
|
35
|
+
def statbox(self, **kwargs: Any) -> None:
|
36
36
|
logging.getLogger("statbox").info(msg={**self.default_fields, **kwargs})
|
37
37
|
|
38
|
-
def user_log(self, **kwargs:
|
38
|
+
def user_log(self, **kwargs: Any) -> None:
|
39
39
|
logging.getLogger("user").info(msg={**self.default_fields, **kwargs})
|
40
40
|
|
41
|
-
def debug_log(self, **kwargs:
|
41
|
+
def debug_log(self, **kwargs: Any) -> None:
|
42
42
|
logging.getLogger("debug").debug(msg={**self.default_fields, **kwargs})
|
43
43
|
|
44
44
|
def error_log(self, e, level=logging.ERROR, **fields) -> None:
|
@@ -0,0 +1,7 @@
|
|
1
|
+
izihawa_loglib/__init__.py,sha256=E6ab53TTvjIwCOv8Wl8SbNyaPjXkOlim2fryehPgiEA,1005
|
2
|
+
izihawa_loglib/formatters.py,sha256=GXb7rQY4tMpjyvZb2oYpz5W1JwXZbOV0HpKp11gxsW0,2896
|
3
|
+
izihawa_loglib/handlers.py,sha256=GU7SLTgia1pgY9ufvUQSsMMEweaAGe6B7ibKn2wLb1I,1122
|
4
|
+
izihawa_loglib/request_context.py,sha256=A3T-dsIytgRezhmxu0MdE6ZPc0ZYbuE-QGGIQOVY6q8,1820
|
5
|
+
izihawa_loglib-1.1.16.dist-info/METADATA,sha256=c3pr0PiU3K4PX2f1__I2gEhSNIEQPW_dQf5zBmpDOtc,658
|
6
|
+
izihawa_loglib-1.1.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
7
|
+
izihawa_loglib-1.1.16.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
izihawa_loglib/__init__.py,sha256=E6ab53TTvjIwCOv8Wl8SbNyaPjXkOlim2fryehPgiEA,1005
|
2
|
-
izihawa_loglib/formatters.py,sha256=GXb7rQY4tMpjyvZb2oYpz5W1JwXZbOV0HpKp11gxsW0,2896
|
3
|
-
izihawa_loglib/handlers.py,sha256=GU7SLTgia1pgY9ufvUQSsMMEweaAGe6B7ibKn2wLb1I,1122
|
4
|
-
izihawa_loglib/request_context.py,sha256=h06z3p7ygx7EgkdlWqiyfLqgt_BRYP1tXs2tY4baYjg,1835
|
5
|
-
izihawa_loglib-1.1.15.dist-info/METADATA,sha256=tq1-atDG0EXTNJdS5D_pU9wLr3GUT5kZfD_Oy-Rncxw,658
|
6
|
-
izihawa_loglib-1.1.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
7
|
-
izihawa_loglib-1.1.15.dist-info/RECORD,,
|
File without changes
|