prettysimplelogging 0.1.0__tar.gz → 0.2.0__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.
- {prettysimplelogging-0.1.0/src/prettysimplelogging.egg-info → prettysimplelogging-0.2.0}/PKG-INFO +1 -1
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/README.md +3 -2
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/pyproject.toml +1 -1
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/src/betterlogging/blogging.py +3 -1
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0/src/prettysimplelogging.egg-info}/PKG-INFO +1 -1
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/LICENSE +0 -0
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/setup.cfg +0 -0
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/src/betterlogging/__init__.py +0 -0
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/src/prettysimplelogging.egg-info/SOURCES.txt +0 -0
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/src/prettysimplelogging.egg-info/dependency_links.txt +0 -0
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/src/prettysimplelogging.egg-info/requires.txt +0 -0
- {prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/src/prettysimplelogging.egg-info/top_level.txt +0 -0
@@ -1,11 +1,12 @@
|
|
1
|
-
#
|
1
|
+
# Pretty Simple Logging for Python
|
2
2
|
|
3
3
|
Simple Python logging. Easy to use and pretty.
|
4
4
|
It's just CLI messages for now.
|
5
|
+
[Hosted on PyPI](https://pypi.org/project/prettysimplelogging)
|
5
6
|
|
6
7
|
## Install
|
7
8
|
```
|
8
|
-
|
9
|
+
pip install prettysimplelogging
|
9
10
|
```
|
10
11
|
|
11
12
|
## Usage
|
@@ -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):
|
File without changes
|
File without changes
|
File without changes
|
{prettysimplelogging-0.1.0 → prettysimplelogging-0.2.0}/src/prettysimplelogging.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|