possible fix

This commit is contained in:
2024-03-22 14:02:19 +01:00
parent 0071498122
commit 0fe530c6a2
30 changed files with 22 additions and 156 deletions
-10
View File
@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+1 -1
View File
@@ -3,5 +3,5 @@
<component name="Black">
<option name="sdkName" value="Python 3.12 (ehLogger)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (ehLogger)" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (eh_logging)" project-jdk-type="Python SDK" />
</project>
+1 -1
View File
@@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/eh_logger.iml" filepath="$PROJECT_DIR$/.idea/eh_logger.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/eh_logging.iml" filepath="$PROJECT_DIR$/.idea/eh_logging.iml" />
</modules>
</component>
</project>
+1 -1
View File
@@ -1,5 +1,5 @@
# ehLogger
# eh_logging
> Simple helper to get easier formatted logger from the python logging module
+2 -2
View File
@@ -25,9 +25,9 @@ __all__ = tuple(logging__all__ + [
'set_default_logger',
'warning',
])
__version__ = '0.1.3'
__version__ = '0.1.5'
__author__ = 'Eishausener <code@eishausener.de>'
__name__ = 'eh-logger'
__name__ = 'eh_logging'
##########
# config #
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1,5 +1,5 @@
# eh-logger
# eh_logging
> Simple helper to get easier formatted logger from the python logging module
-9
View File
@@ -1,9 +0,0 @@
README.md
setup.py
eh_logger.egg-info/PKG-INFO
eh_logger.egg-info/SOURCES.txt
eh_logger.egg-info/dependency_links.txt
eh_logger.egg-info/requires.txt
eh_logger.egg-info/top_level.txt
eh_logging/__init__.py
test/test.py
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: eh-logger
Version: 0.1.3
Name: eh_logging
Version: 0.1.5
Summary: Simple helper to get easier formatted logger from the python logging module
Home-page: https://git.eishausener.dev/Eishausener/eh_logging
Author: Eishausener <code@eishausener.de>
@@ -15,7 +15,7 @@ Requires-Dist: wheel; extra == "dev"
Requires-Dist: setuptools; extra == "dev"
# eh-logger
# eh_logging
> Simple helper to get easier formatted logger from the python logging module
+9
View File
@@ -0,0 +1,9 @@
README.md
setup.py
eh_logging/__init__.py
eh_logging.egg-info/PKG-INFO
eh_logging.egg-info/SOURCES.txt
eh_logging.egg-info/dependency_links.txt
eh_logging.egg-info/requires.txt
eh_logging.egg-info/top_level.txt
test/test.py
+1 -1
View File
@@ -1,5 +1,5 @@
# ehLogger
# eh_logging
> Simple helper to get easier formatted logger from the python logging module
+2 -2
View File
@@ -25,9 +25,9 @@ __all__ = tuple(logging__all__ + [
'set_default_logger',
'warning',
])
__version__ = '0.1.4'
__version__ = '0.1.5'
__author__ = 'Eishausener <code@eishausener.de>'
__name__ = 'eh-logger'
__name__ = 'eh_logging'
##########
# config #
-107
View File
@@ -1,107 +0,0 @@
Metadata-Version: 2.1
Name: eh-logger
Version: 0.1.3
Summary: Simple helper to get easier formatted logger from the python logging module
Home-page: https://git.eishausener.dev/Eishausener/eh_logging
Author: Eishausener <code@eishausener.de>
Author-email: code@eishausener.de
License: MIT
Project-URL: issue tracker, https://git.eishausener.dev/Eishausener/eh_logging/issues
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Provides-Extra: dev
Requires-Dist: twine; extra == "dev"
Requires-Dist: wheel; extra == "dev"
Requires-Dist: setuptools; extra == "dev"
# eh-logger
> Simple helper to get easier formatted logger from the python logging module
# install
pip install git+https://git.eishausener.dev/Eishausener/eh_logging \
or \
pip install git+https://github.com/Eishausener/eh_logging
# usage
import eh-logging, create a formatted logger and use the logger
```python
# import
import eh_logging as logging
# create formatted logger
formatted_logger = logging.get_formatted_logger(
'formatted_logger',
console=True,
console_level=logging.DEBUG,
file=True,
file_path=r'log\formatted_logger.log',
file_level=logging.DEBUG,
file_backup_count=5,
file_rotate='h',
)
# use the logger
formatted_logger.debug('Example formatted DEBUG Message')
formatted_logger.info('Example formatted INFO Message')
formatted_logger.warning('Example formatted WARNING Message')
formatted_logger.error('Example formatted ERROR Message')
formatted_logger.critical('Example formatted CRITICAL Message')
```
use the decorator with the INFO level
```python
# import
import eh_logging as logging
# set default logger to DEBUG level to see output
logging.set_default_level(logging.DEBUG)
# use logging decorator with default logger
@logging.Decorator.info(arg=True, kwarg=True, return_value=True, decimal_places=1)
def example_function(first_param, second_param, *args, **kwargs):
return first_param, second_param, *args, *kwargs
# execute function
example_function('Hello', 'world', 'test', 'example', hello='world', world='test')
```
use the decorator with own logger
```python
# import
import eh_logging as logging
# create formatted logger
formatted_logger = logging.get_formatted_logger(
'example_decorator_logger',
console=True,
console_level=logging.DEBUG,
file=True,
file_path=r'log\decorator_logger.log',
file_level=logging.DEBUG,
file_backup_count=5,
file_rotate='h',
)
# use logging decorator with custom logger
@logging.Decorator.debug(logger=formatted_logger, arg=True, kwarg=True, return_value=True, decimal_places=1)
def example_function(first_param, second_param, *args, **kwargs):
return first_param, second_param, *args, *kwargs
# execute function
example_function('Hello', 'world', 'test', 'example', hello='world', world='test')
```
@@ -1,8 +0,0 @@
README.md
setup.py
eh_logging/eh_logger.egg-info/PKG-INFO
eh_logging/eh_logger.egg-info/SOURCES.txt
eh_logging/eh_logger.egg-info/dependency_links.txt
eh_logging/eh_logger.egg-info/requires.txt
eh_logging/eh_logger.egg-info/top_level.txt
test/test.py
@@ -1 +0,0 @@
@@ -1,5 +0,0 @@
[dev]
twine
wheel
setuptools
@@ -1 +0,0 @@
+1 -3
View File
@@ -12,9 +12,7 @@ setup(
name=name,
version=version,
description='Simple helper to get easier formatted logger from the python logging module',
# package_dir={'': 'eh_logging'},
# packages=find_packages(where='eh_logging'),
packages=find_packages(),
# packages=find_packages(),
long_description=long_description,
long_description_content_type="text/markdown",
url='https://git.eishausener.dev/Eishausener/eh_logging',