From 9235fea1f319d75dba5b034c081548f9ba4a3fc4 Mon Sep 17 00:00:00 2001 From: Eishausener Date: Fri, 22 Mar 2024 12:16:33 +0100 Subject: [PATCH] dist --- .run/build.run.xml | 26 +++++ .run/twine check.run.xml | 17 +++ .run/twine upload testpypi.run.xml | 17 +++ .run/twine upload.run.xml | 17 +++ dist/eh-logger-0.1.0.tar.gz | Bin 0 -> 2572 bytes dist/eh_logger-0.1.0-py3-none-any.whl | Bin 0 -> 1780 bytes eh_logging/eh_logger.egg-info/PKG-INFO | 107 ++++++++++++++++++ eh_logging/eh_logger.egg-info/SOURCES.txt | 8 ++ .../eh_logger.egg-info/dependency_links.txt | 1 + eh_logging/eh_logger.egg-info/requires.txt | 5 + eh_logging/eh_logger.egg-info/top_level.txt | 1 + setup.py | 3 +- 12 files changed, 201 insertions(+), 1 deletion(-) create mode 100644 .run/build.run.xml create mode 100644 .run/twine check.run.xml create mode 100644 .run/twine upload testpypi.run.xml create mode 100644 .run/twine upload.run.xml create mode 100644 dist/eh-logger-0.1.0.tar.gz create mode 100644 dist/eh_logger-0.1.0-py3-none-any.whl create mode 100644 eh_logging/eh_logger.egg-info/PKG-INFO create mode 100644 eh_logging/eh_logger.egg-info/SOURCES.txt create mode 100644 eh_logging/eh_logger.egg-info/dependency_links.txt create mode 100644 eh_logging/eh_logger.egg-info/requires.txt create mode 100644 eh_logging/eh_logger.egg-info/top_level.txt diff --git a/.run/build.run.xml b/.run/build.run.xml new file mode 100644 index 0000000..70ef054 --- /dev/null +++ b/.run/build.run.xml @@ -0,0 +1,26 @@ + + + + + \ No newline at end of file diff --git a/.run/twine check.run.xml b/.run/twine check.run.xml new file mode 100644 index 0000000..6c5f631 --- /dev/null +++ b/.run/twine check.run.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.run/twine upload testpypi.run.xml b/.run/twine upload testpypi.run.xml new file mode 100644 index 0000000..99cb343 --- /dev/null +++ b/.run/twine upload testpypi.run.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.run/twine upload.run.xml b/.run/twine upload.run.xml new file mode 100644 index 0000000..cb4bdd6 --- /dev/null +++ b/.run/twine upload.run.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/dist/eh-logger-0.1.0.tar.gz b/dist/eh-logger-0.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fe9a6ef5a1ed87a728a68167a67a38d1cf3738c7 GIT binary patch literal 2572 zcmV+n3iI_JiwFouXZ>XY|7B<`Y;R|0WpXVrE-@}JE_7jX0PP%WbE7yipQ-YHP)$By z@5MIwffL`cHMu0Wle$S}D#_e^$WAc~$Tk}coDg}`*8ca?1KD5`$C+_Fcbjfk8IW3P zy}BD(>Tb1L?YAG@`*+y&G1++$FeE&7HH>a=e$UfQqhoe<(EZL9AWNxB82O#o37vg3 zrNI>2=D;*fqrY!;Tb*wIV87ebb^!kLfG5o`9*;3;8ZEPBv|oz<2ZO=m{Lk*qUVkv? zSlzxc;QZh1c6U%8`2WSB1@a%{|C0Rg9qji&{=Y`~|M8!{G*8d}@nO^aZ&}u3{NJ}2 z|Ci;z+3OiQ$N>I-aX7=&^4r(-v&NTn%m>mBgaM^V+_A`67ES zIxFfc)a$4raZ@!qvI#kvMItqAmg3}OZB?+vrovgwuGcigKwnJP_hg0_M`;{l`-)_^ zoaBV~7KgT~{P^VWpMJ?PMnSm*e|8d=PHdtx{9hM|wb(^3;;ydR`O26yOB^rGB5L=G zIV7fRSZsa5t81v)Dv$XRbsvAt#&!MV-W6+iKBj^&I>RZSZ@p1bG>ArVRY|UHR~Ec; zNyPeARrcS97w4zvtLb7wVp3K3ZCp7pGUJM~Cl=6^JFuFKQfp z?8U^TjFIjbw}>RsT`_6jv80)-VRet(EToEMnEa4)AnN9iDaI(yXp*ri)%susoxGr2 zIrY-YX(&;}JD`X!bfQeRroEljpz!2WyJRdEHoCc+-xDS!N#xwRVV19ZUVkukLnjGc z52v=t8o_8V87hX{8D){jrG0%Akd!js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00000000000000000000008(uhW`S7o9hPvpa1~33{_YF literal 0 HcmV?d00001 diff --git a/dist/eh_logger-0.1.0-py3-none-any.whl b/dist/eh_logger-0.1.0-py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..00e1ac260dcac4a2a4efccdefbbd66fa2bc1de8c GIT binary patch literal 1780 zcmai!2{hDO9LN7;ooFMng=#W}*^I3uh7@B&f7uS6=P{TX22JHyDik?NmSoE^S*Nni z^Jp{KYcS2ozUDC=WqC!`!W(toc_-)O-FtrLo_o*vea`RP-}n2ovD_vk4FG@`;O=zE z5gSSJq-+C#?Ck(>fd5MLaU)Z_y@`PcG!lbEBRxqMs0fmu7X@Wyb{2O6cNRBo=S1m0 zx$BBr%{tmx*{AU62oUDptP)qOD;O%oXlDxLbo0yyf?34H_^GS!dh_k?dD;cUkE-v< zsrF)0{4#Uhq1eakvT!yrsqRtj8AaDJdE1(YC>}Wq9%s)%iJpo~37`@u)9KODB|(Fb z>kzY8$gS&g^2P;6G7G@Y)_t0^$Z&e1PAY^JhE67b)uDLVw7iAf%3WkMU1{-ZaFuKS zK-Iq=fHf}B@Y2yO5`n&n&V4oK&u;Rt%z@wd!+WVZ9?BdP3X(eU#Sx1HdsL-PdB3PR znFJjloz!2+;TbumuDxP8L0rzq{wl38V>8bj=%9&m1E>d5yF&5hcz2d436kRAq3`Dm z9hZLA;k+wrbVB+fE$BQp*+TK-jR~J$hUCCQ3}BwCS9RW#8R_soUzQV{a8n>{DAGg~D>g;1 zdaQ0CRb79_M^8^Lb8*P&PE}M!bUa$=L3>(RUhm8kj&aQf}DIRqJJ1 z2M?O6DjJ-vP1gE9oRlxn0r}y-33orE{HN1M_}y=_9U)XSn1|Kol*vOX1)Wn z`*cxxzJ!JTmDt3nxqe-g*}w%DHXXvtlRTDnE3|(xV|xiBLlSN4EjL+ z5$4ipVChH%Ju0+6|I6Yh-fyAh*|N!r=Tc^Uw4UCdvdee!2&!#BPA9RJf45jzj zy{SDprWkc*Oi_&Ie40Gl)YiY(Bz_WPcRbc0KXE=bv-h?|C-1`HDaMS_@zS){&b5$^ z-raIIMQzit*K>4Vh~CGY1ui7hYMSHV!SSN1X8&NEQ2IUDEWC1oYvyIoj}nciDLO@e zmzVi@YSKq1Vlb=_X_Lc-<}zT+TVIKDqh0x$z8Y#t#fQG8Ukv0F$*dgw()Z`0VUwF! zV{@M}Mx=_x9N+hquqtb>u!0)0T^o#_5@JlF7lyq(j+J88w%Pn(S4uKN+l6n_jZogw zt`6pAW`yk=b1Qb6q$L9Wrj_$Mi0;4+2U@c&5qM1&iUFGAS(?ZglqmfS7tO_D-eS2t zNHYi3Hm}(w2}9u7ECK_Bsl%uRV7pLO4O|4GHE|hw#;w0fS@$+^ZCsGl5eXreB=24 zX}y`ZSwP=u08klT%5UG#dEex;8Me9U|G~_Kwu1d2fz8m(3iuaV5gxxK^t&ExEQLij PGKBcsn6IHM;f>or@0;QM literal 0 HcmV?d00001 diff --git a/eh_logging/eh_logger.egg-info/PKG-INFO b/eh_logging/eh_logger.egg-info/PKG-INFO new file mode 100644 index 0000000..4d348cf --- /dev/null +++ b/eh_logging/eh_logger.egg-info/PKG-INFO @@ -0,0 +1,107 @@ +Metadata-Version: 2.1 +Name: eh-logger +Version: 0.1.0 +Summary: Simple helper to get easier formatted logger from the python logging module +Home-page: https://git.eishausener.dev/Eishausener/eh-logger +Author: Eishausener +Author-email: code@eishausener.de +License: MIT +Project-URL: issue tracker, https://git.eishausener.dev/Eishausener/eh-logger/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-logger \ +or \ +pip install git+https://github.com/Eishausener/eh-logger + +# 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') + +``` diff --git a/eh_logging/eh_logger.egg-info/SOURCES.txt b/eh_logging/eh_logger.egg-info/SOURCES.txt new file mode 100644 index 0000000..c109475 --- /dev/null +++ b/eh_logging/eh_logger.egg-info/SOURCES.txt @@ -0,0 +1,8 @@ +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 \ No newline at end of file diff --git a/eh_logging/eh_logger.egg-info/dependency_links.txt b/eh_logging/eh_logger.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/eh_logging/eh_logger.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/eh_logging/eh_logger.egg-info/requires.txt b/eh_logging/eh_logger.egg-info/requires.txt new file mode 100644 index 0000000..0556cc8 --- /dev/null +++ b/eh_logging/eh_logger.egg-info/requires.txt @@ -0,0 +1,5 @@ + +[dev] +twine +wheel +setuptools diff --git a/eh_logging/eh_logger.egg-info/top_level.txt b/eh_logging/eh_logger.egg-info/top_level.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/eh_logging/eh_logger.egg-info/top_level.txt @@ -0,0 +1 @@ + diff --git a/setup.py b/setup.py index 72d7875..00ce6cb 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ name = eh_logging.__name__ setup( name=name, version=version, - description='', + description='Simple helper to get easier formatted logger from the python logging module', package_dir={'': 'eh_logging'}, packages=find_packages(where='eh_logging'), long_description=long_description, @@ -20,6 +20,7 @@ setup( author=author, author_email='code@eishausener.de', license='MIT', + # https://pypi.org/classifiers/ classifiers=[ 'License :: OSI Approved :: MIT License', ],