custom-python-logger 2.0.13__tar.gz → 2.0.14__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-2.0.13/custom_python_logger.egg-info → custom_python_logger-2.0.14}/PKG-INFO +1 -1
  2. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/custom_python_logger/logger.py +4 -1
  3. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14/custom_python_logger.egg-info}/PKG-INFO +1 -1
  4. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/pyproject.toml +1 -1
  5. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/LICENSE +0 -0
  6. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/MANIFEST.in +0 -0
  7. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/README.md +0 -0
  8. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/custom_python_logger/__init__.py +0 -0
  9. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/custom_python_logger/consts.py +0 -0
  10. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/custom_python_logger.egg-info/SOURCES.txt +0 -0
  11. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/custom_python_logger.egg-info/dependency_links.txt +0 -0
  12. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/custom_python_logger.egg-info/requires.txt +0 -0
  13. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/custom_python_logger.egg-info/top_level.txt +0 -0
  14. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/requirements.txt +0 -0
  15. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/setup.cfg +0 -0
  16. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/tests/test_logger.py +0 -0
  17. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/tests/test_logger_pytest.py +0 -0
  18. {custom_python_logger-2.0.13 → custom_python_logger-2.0.14}/tests/test_usage_example_pytest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: custom-python-logger
3
- Version: 2.0.13
3
+ Version: 2.0.14
4
4
  Summary: A custom logger with color support and additional features.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -92,7 +92,10 @@ def add_file_handler_if_specified(
92
92
  # Create directory if it doesn't exist
93
93
  log_dir = os.path.dirname(log_file_path)
94
94
  if log_dir and not os.path.exists(log_dir):
95
- os.makedirs(log_dir)
95
+ try:
96
+ os.makedirs(log_dir)
97
+ except FileExistsError:
98
+ pass # Directory was created by another process
96
99
 
97
100
  file_handler = logging.FileHandler(log_file_path)
98
101
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: custom-python-logger
3
- Version: 2.0.13
3
+ Version: 2.0.14
4
4
  Summary: A custom logger with color support and additional features.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "custom-python-logger"
7
- version = "2.0.13"
7
+ version = "2.0.14"
8
8
  description = "A custom logger with color support and additional features."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"