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.
Files changed (18) hide show
  1. {custom_python_logger-1.0.7/custom_python_logger.egg-info → custom_python_logger-1.0.9}/PKG-INFO +11 -8
  2. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/README.md +10 -7
  3. custom_python_logger-1.0.9/custom_python_logger/__init__.py +10 -0
  4. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9/custom_python_logger.egg-info}/PKG-INFO +11 -8
  5. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/setup.py +1 -1
  6. custom_python_logger-1.0.7/custom_python_logger/__init__.py +0 -3
  7. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/LICENSE +0 -0
  8. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/MANIFEST.in +0 -0
  9. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger/logger.py +0 -0
  10. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger/usage_example.py +0 -0
  11. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/SOURCES.txt +0 -0
  12. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/dependency_links.txt +0 -0
  13. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/requires.txt +0 -0
  14. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/custom_python_logger.egg-info/top_level.txt +0 -0
  15. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/pyproject.toml +0 -0
  16. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/requirements.txt +0 -0
  17. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/setup.cfg +0 -0
  18. {custom_python_logger-1.0.7 → custom_python_logger-1.0.9}/tests/test_logger.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: custom-python-logger
3
- Version: 1.0.7
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
 
@@ -0,0 +1,10 @@
1
+ from custom_python_logger.logger import (
2
+ get_logger, CustomLoggerAdapter, json_pretty_format, yaml_pretty_format
3
+ )
4
+
5
+ __all__ = [
6
+ "get_logger",
7
+ "CustomLoggerAdapter",
8
+ "json_pretty_format",
9
+ "yaml_pretty_format"
10
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: custom-python-logger
3
- Version: 1.0.7
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
 
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- package_version = '1.0.7'
3
+ package_version = '1.0.9'
4
4
 
5
5
  package_name = 'custom-python-logger'
6
6
  package_description = 'A custom logger with color support and additional features.'
@@ -1,3 +0,0 @@
1
- from custom_python_logger.logger import get_logger, json_pretty_format, yaml_pretty_format
2
-
3
- __all__ = ["get_logger", "json_pretty_format", "yaml_pretty_format"]