custom-python-logger 1.0.7__tar.gz → 1.0.9__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.
- {custom_python_logger-1.0.7/custom_python_logger.egg-info → custom_python_logger-1.0.9}/PKG-INFO +11 -8
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/README.md +10 -7
- custom_python_logger-1.0.9/custom_python_logger/__init__.py +10 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9/custom_python_logger.egg-info}/PKG-INFO +11 -8
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/setup.py +1 -1
- custom_python_logger-1.0.7/custom_python_logger/__init__.py +0 -3
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/LICENSE +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/MANIFEST.in +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger/logger.py +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger/usage_example.py +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/SOURCES.txt +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/dependency_links.txt +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/requires.txt +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/top_level.txt +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/pyproject.toml +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/requirements.txt +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/setup.cfg +0 -0
- {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/tests/test_logger.py +0 -0
{custom_python_logger-1.0.7/custom_python_logger.egg-info → custom_python_logger-1.0.9}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: custom-python-logger
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.9
|
|
4
4
|
Summary: A custom logger with color support and additional features.
|
|
5
5
|
Home-page: https://github.com/aviz92/custom-python-logger
|
|
6
6
|
Author: Avi Zaguri
|
|
@@ -38,15 +38,12 @@ pip install custom-python-logger
|
|
|
38
38
|
## Usage
|
|
39
39
|
```python
|
|
40
40
|
import logging
|
|
41
|
-
from custom_python_logger.logger import get_logger
|
|
41
|
+
from custom_python_logger.logger import get_logger, CustomLoggerAdapter
|
|
42
|
+
|
|
43
|
+
logger: CustomLoggerAdapter = CustomLoggerAdapter(logging.getLogger(__name__))
|
|
42
44
|
|
|
43
|
-
def main():
|
|
44
|
-
logger = get_logger(
|
|
45
|
-
project_name='Logger Project Test',
|
|
46
|
-
log_level=logging.DEBUG,
|
|
47
|
-
extra={'user': 'test_user'}
|
|
48
|
-
)
|
|
49
45
|
|
|
46
|
+
def main():
|
|
50
47
|
logger.debug("This is a debug message.")
|
|
51
48
|
logger.info("This is an info message.")
|
|
52
49
|
logger.step("This is a step message.")
|
|
@@ -61,6 +58,12 @@ def main():
|
|
|
61
58
|
|
|
62
59
|
|
|
63
60
|
if __name__ == '__main__':
|
|
61
|
+
_ = get_logger(
|
|
62
|
+
project_name='Logger Project Test',
|
|
63
|
+
log_level=logging.DEBUG,
|
|
64
|
+
extra={'user': 'test_user'}
|
|
65
|
+
)
|
|
66
|
+
|
|
64
67
|
main()
|
|
65
68
|
```
|
|
66
69
|
|
|
@@ -11,15 +11,12 @@ pip install custom-python-logger
|
|
|
11
11
|
## Usage
|
|
12
12
|
```python
|
|
13
13
|
import logging
|
|
14
|
-
from custom_python_logger.logger import get_logger
|
|
14
|
+
from custom_python_logger.logger import get_logger, CustomLoggerAdapter
|
|
15
|
+
|
|
16
|
+
logger: CustomLoggerAdapter = CustomLoggerAdapter(logging.getLogger(__name__))
|
|
15
17
|
|
|
16
|
-
def main():
|
|
17
|
-
logger = get_logger(
|
|
18
|
-
project_name='Logger Project Test',
|
|
19
|
-
log_level=logging.DEBUG,
|
|
20
|
-
extra={'user': 'test_user'}
|
|
21
|
-
)
|
|
22
18
|
|
|
19
|
+
def main():
|
|
23
20
|
logger.debug("This is a debug message.")
|
|
24
21
|
logger.info("This is an info message.")
|
|
25
22
|
logger.step("This is a step message.")
|
|
@@ -34,6 +31,12 @@ def main():
|
|
|
34
31
|
|
|
35
32
|
|
|
36
33
|
if __name__ == '__main__':
|
|
34
|
+
_ = get_logger(
|
|
35
|
+
project_name='Logger Project Test',
|
|
36
|
+
log_level=logging.DEBUG,
|
|
37
|
+
extra={'user': 'test_user'}
|
|
38
|
+
)
|
|
39
|
+
|
|
37
40
|
main()
|
|
38
41
|
```
|
|
39
42
|
|
{custom_python_logger-1.0.7 → custom_python_logger-1.0.9/custom_python_logger.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: custom-python-logger
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.9
|
|
4
4
|
Summary: A custom logger with color support and additional features.
|
|
5
5
|
Home-page: https://github.com/aviz92/custom-python-logger
|
|
6
6
|
Author: Avi Zaguri
|
|
@@ -38,15 +38,12 @@ pip install custom-python-logger
|
|
|
38
38
|
## Usage
|
|
39
39
|
```python
|
|
40
40
|
import logging
|
|
41
|
-
from custom_python_logger.logger import get_logger
|
|
41
|
+
from custom_python_logger.logger import get_logger, CustomLoggerAdapter
|
|
42
|
+
|
|
43
|
+
logger: CustomLoggerAdapter = CustomLoggerAdapter(logging.getLogger(__name__))
|
|
42
44
|
|
|
43
|
-
def main():
|
|
44
|
-
logger = get_logger(
|
|
45
|
-
project_name='Logger Project Test',
|
|
46
|
-
log_level=logging.DEBUG,
|
|
47
|
-
extra={'user': 'test_user'}
|
|
48
|
-
)
|
|
49
45
|
|
|
46
|
+
def main():
|
|
50
47
|
logger.debug("This is a debug message.")
|
|
51
48
|
logger.info("This is an info message.")
|
|
52
49
|
logger.step("This is a step message.")
|
|
@@ -61,6 +58,12 @@ def main():
|
|
|
61
58
|
|
|
62
59
|
|
|
63
60
|
if __name__ == '__main__':
|
|
61
|
+
_ = get_logger(
|
|
62
|
+
project_name='Logger Project Test',
|
|
63
|
+
log_level=logging.DEBUG,
|
|
64
|
+
extra={'user': 'test_user'}
|
|
65
|
+
)
|
|
66
|
+
|
|
64
67
|
main()
|
|
65
68
|
```
|
|
66
69
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger/usage_example.py
RENAMED
|
File without changes
|
{custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|