prettysimplelogging 0.1.0__py3-none-any.whl → 0.2.0__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.
- betterlogging/blogging.py +3 -1
- {prettysimplelogging-0.1.0.dist-info → prettysimplelogging-0.2.0.dist-info}/METADATA +1 -1
- prettysimplelogging-0.2.0.dist-info/RECORD +7 -0
- prettysimplelogging-0.1.0.dist-info/RECORD +0 -7
- {prettysimplelogging-0.1.0.dist-info → prettysimplelogging-0.2.0.dist-info}/WHEEL +0 -0
- {prettysimplelogging-0.1.0.dist-info → prettysimplelogging-0.2.0.dist-info}/licenses/LICENSE +0 -0
- {prettysimplelogging-0.1.0.dist-info → prettysimplelogging-0.2.0.dist-info}/top_level.txt +0 -0
betterlogging/blogging.py
CHANGED
@@ -6,7 +6,7 @@ class Message:
|
|
6
6
|
"""
|
7
7
|
def __init__(self, _text, _type='INFO'):
|
8
8
|
# TODO: custom type
|
9
|
-
self.TYPES = ['INFO', 'WARN', 'ERR']
|
9
|
+
self.TYPES = ['INFO', 'WARN', 'ERR', 'SUCC']
|
10
10
|
self.type = _type
|
11
11
|
self.text = _text
|
12
12
|
|
@@ -32,6 +32,8 @@ class Message:
|
|
32
32
|
self._color = 'yellow'
|
33
33
|
elif self._type == 'ERR':
|
34
34
|
self._color = 'red'
|
35
|
+
elif self._type == 'SUCC':
|
36
|
+
self._color = 'green'
|
35
37
|
|
36
38
|
@property
|
37
39
|
def text(self):
|
@@ -0,0 +1,7 @@
|
|
1
|
+
betterlogging/__init__.py,sha256=z7D-HlX-eJP4qSHkHCmi9I5FhwuVsf6D-UG9murugQ0,53
|
2
|
+
betterlogging/blogging.py,sha256=WtbycTQFfqERnjEGmPgJdkT1YxjxmDSfN7u8S-5HB90,1381
|
3
|
+
prettysimplelogging-0.2.0.dist-info/licenses/LICENSE,sha256=kL-etuayMkYqDjvRdJY2OWvtKRXJlvk0Uuekzx9t1E4,1056
|
4
|
+
prettysimplelogging-0.2.0.dist-info/METADATA,sha256=i2uruByU_5BNru1kuR2jq69Q98fIsBhpKZPGWZ1qwgM,296
|
5
|
+
prettysimplelogging-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
6
|
+
prettysimplelogging-0.2.0.dist-info/top_level.txt,sha256=LeWviHHx4hNpNjGijzfMfZLQ_uSC7-ACs3ATjKigj9s,14
|
7
|
+
prettysimplelogging-0.2.0.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
betterlogging/__init__.py,sha256=z7D-HlX-eJP4qSHkHCmi9I5FhwuVsf6D-UG9murugQ0,53
|
2
|
-
betterlogging/blogging.py,sha256=08LlBxa8MzuauZFTxVmkupt8JuiJJSwBlHp_RPjOW1U,1304
|
3
|
-
prettysimplelogging-0.1.0.dist-info/licenses/LICENSE,sha256=kL-etuayMkYqDjvRdJY2OWvtKRXJlvk0Uuekzx9t1E4,1056
|
4
|
-
prettysimplelogging-0.1.0.dist-info/METADATA,sha256=eN25PxdX2vgtkZ3sjHOPOtz0jiq-v2IsHzA9jLPjDZU,296
|
5
|
-
prettysimplelogging-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
6
|
-
prettysimplelogging-0.1.0.dist-info/top_level.txt,sha256=LeWviHHx4hNpNjGijzfMfZLQ_uSC7-ACs3ATjKigj9s,14
|
7
|
-
prettysimplelogging-0.1.0.dist-info/RECORD,,
|
File without changes
|
{prettysimplelogging-0.1.0.dist-info → prettysimplelogging-0.2.0.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|