python-sdk-remote 0.0.96__py3-none-any.whl → 0.0.97__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.
- python_sdk_remote/mini_logger.py +18 -5
- {python_sdk_remote-0.0.96.dist-info → python_sdk_remote-0.0.97.dist-info}/METADATA +1 -1
- {python_sdk_remote-0.0.96.dist-info → python_sdk_remote-0.0.97.dist-info}/RECORD +5 -5
- {python_sdk_remote-0.0.96.dist-info → python_sdk_remote-0.0.97.dist-info}/WHEEL +0 -0
- {python_sdk_remote-0.0.96.dist-info → python_sdk_remote-0.0.97.dist-info}/top_level.txt +0 -0
python_sdk_remote/mini_logger.py
CHANGED
|
@@ -26,7 +26,6 @@ logger = logging.getLogger(__name__)
|
|
|
26
26
|
|
|
27
27
|
class MiniLogger:
|
|
28
28
|
# TODO Can we so one generic function call by all
|
|
29
|
-
# TODO Shall we user the Python logging package?
|
|
30
29
|
|
|
31
30
|
@staticmethod
|
|
32
31
|
def start(message: str = "", object: dict = None):
|
|
@@ -38,9 +37,9 @@ class MiniLogger:
|
|
|
38
37
|
object (dict): The object to be printed.
|
|
39
38
|
"""
|
|
40
39
|
if object is None:
|
|
41
|
-
logger.
|
|
40
|
+
logger.debug(f"START - {message}")
|
|
42
41
|
else:
|
|
43
|
-
logger.
|
|
42
|
+
logger.debug(f"START - {message} - {object}")
|
|
44
43
|
|
|
45
44
|
@staticmethod
|
|
46
45
|
def end(message: str = "", object: dict = None):
|
|
@@ -51,9 +50,23 @@ class MiniLogger:
|
|
|
51
50
|
message (str): The message to be printed.
|
|
52
51
|
"""
|
|
53
52
|
if object is None:
|
|
54
|
-
logger.
|
|
53
|
+
logger.debug(f"END - {message}")
|
|
55
54
|
else:
|
|
56
|
-
logger.
|
|
55
|
+
logger.debug(f"END - {message} - {object}")
|
|
56
|
+
|
|
57
|
+
@staticmethod
|
|
58
|
+
def debug(message: str = "", object: dict = None):
|
|
59
|
+
"""
|
|
60
|
+
Print a log message with the current time.
|
|
61
|
+
|
|
62
|
+
Parameters:
|
|
63
|
+
message (str): The message to be printed.
|
|
64
|
+
object (dict): The object to be printed.
|
|
65
|
+
"""
|
|
66
|
+
if object is None:
|
|
67
|
+
logger.debug(f"DEBUG - {message}")
|
|
68
|
+
else:
|
|
69
|
+
logger.debug(f"DEBUG {message} - {object}")
|
|
57
70
|
|
|
58
71
|
@staticmethod
|
|
59
72
|
def info(message: str = "", object: dict = None):
|
|
@@ -2,13 +2,13 @@ python_sdk_remote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
2
2
|
python_sdk_remote/constants.py,sha256=JxgyxvUsE1U78bAtmpTMi_5-tFlzm18kjZrjTRy3ngU,1142
|
|
3
3
|
python_sdk_remote/http_response.py,sha256=jRX9D0YaOOh6QsvXg3LRM1sn_N0ZQ2EJZK3s_4jb9ks,3489
|
|
4
4
|
python_sdk_remote/item.py,sha256=HnSLHkZTKTLNhlaZoPhKAwqG-yHPsd7zvqPPOqnrKVg,287
|
|
5
|
-
python_sdk_remote/mini_logger.py,sha256=
|
|
5
|
+
python_sdk_remote/mini_logger.py,sha256=DuAYVt7ArX2JZBLMZFXVZsZ58rcQ0RxKQ8s-vYs7nYg,4162
|
|
6
6
|
python_sdk_remote/our_object.py,sha256=ASD_Pfk1mIqAuHDAsfsWpIhwhRvSwhhwSWRHZcfrGgU,2101
|
|
7
7
|
python_sdk_remote/unified_json.py,sha256=tLkikIVpFAtpioYwtovkGX8-3U9YElGWe4Ph34qDTq4,837
|
|
8
8
|
python_sdk_remote/utilities.py,sha256=xlkq-NkU6NbtVJXZp57WsEIcr8llIW_Rv5LSwGOaiW4,9904
|
|
9
9
|
python_sdk_remote/valid_json_versions.py,sha256=-ZU65JYI6gTEfK8o6gu9Dmm9SQmwzj5pDbEXiyUbBhQ,138
|
|
10
10
|
python_sdk_remote/validate_environment.py,sha256=_h2cHtFT76J30m-ezqe_Dj2zevI4hzReXu6oXV7XHww,2441
|
|
11
|
-
python_sdk_remote-0.0.
|
|
12
|
-
python_sdk_remote-0.0.
|
|
13
|
-
python_sdk_remote-0.0.
|
|
14
|
-
python_sdk_remote-0.0.
|
|
11
|
+
python_sdk_remote-0.0.97.dist-info/METADATA,sha256=MbQpTprDRMkkXzc5NKYflOkoeQV9rtmhehAkX0B5Rv8,562
|
|
12
|
+
python_sdk_remote-0.0.97.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
13
|
+
python_sdk_remote-0.0.97.dist-info/top_level.txt,sha256=JTpEq_svPlI5hTlPq30Ne-NkR-u5464gjVDP2U74PvE,18
|
|
14
|
+
python_sdk_remote-0.0.97.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|