pybuglog 0.1.0__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.
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.4
2
+ Name: pybuglog
3
+ Version: 0.1.0
4
+ Summary: Simple log library
5
+ Home-page: https://github.com/YOURNAME/pybuglog
6
+ Author: Theo
7
+ Description-Content-Type: text/markdown
8
+ Dynamic: author
9
+ Dynamic: description
10
+ Dynamic: description-content-type
11
+ Dynamic: home-page
12
+ Dynamic: summary
13
+
14
+ ## Pylogger features
15
+ - Allows you to log errors
16
+ - Allows you to view all logs
17
+ - Much more!
@@ -0,0 +1,4 @@
1
+ ## Pylogger features
2
+ - Allows you to log errors
3
+ - Allows you to view all logs
4
+ - Much more!
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.4
2
+ Name: pybuglog
3
+ Version: 0.1.0
4
+ Summary: Simple log library
5
+ Home-page: https://github.com/YOURNAME/pybuglog
6
+ Author: Theo
7
+ Description-Content-Type: text/markdown
8
+ Dynamic: author
9
+ Dynamic: description
10
+ Dynamic: description-content-type
11
+ Dynamic: home-page
12
+ Dynamic: summary
13
+
14
+ ## Pylogger features
15
+ - Allows you to log errors
16
+ - Allows you to view all logs
17
+ - Much more!
@@ -0,0 +1,7 @@
1
+ README.md
2
+ pybuglog.py
3
+ setup.py
4
+ pybuglog.egg-info/PKG-INFO
5
+ pybuglog.egg-info/SOURCES.txt
6
+ pybuglog.egg-info/dependency_links.txt
7
+ pybuglog.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ pybuglog
@@ -0,0 +1,27 @@
1
+ import datetime
2
+
3
+
4
+
5
+
6
+ logs = []
7
+ def log(error):
8
+ time = datetime.datetime.now()
9
+ ep = f"[{time}] PYLOGGER.LOG: {error}"
10
+ print(ep)
11
+ logs.append(ep)
12
+ def warn(error):
13
+ time = datetime.datetime.now()
14
+ ep = f"[{time}] PYLOGGER.WARNING: {error}"
15
+ print(ep)
16
+ logs.append(ep)
17
+ def error(error):
18
+ time = datetime.datetime.now()
19
+ ep = f"[{time}] PYLOGGER.ERROR: {error}"
20
+ print(ep)
21
+ logs.append(ep)
22
+
23
+ def view_logs():
24
+ l = len(logs)
25
+ print("==** ALL LOGS **==")
26
+ for item in logs:
27
+ print(item)
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,13 @@
1
+ from setuptools import setup
2
+
3
+ setup(
4
+ name="pybuglog",
5
+ version="0.1.0",
6
+ py_modules=["pybuglog"],
7
+ install_requires=[],
8
+ description="Simple log library",
9
+ long_description=open("README.md").read(),
10
+ long_description_content_type="text/markdown",
11
+ author="Theo",
12
+ url="https://github.com/YOURNAME/pybuglog"
13
+ )