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.
- pybuglog-0.1.0/PKG-INFO +17 -0
- pybuglog-0.1.0/README.md +4 -0
- pybuglog-0.1.0/pybuglog.egg-info/PKG-INFO +17 -0
- pybuglog-0.1.0/pybuglog.egg-info/SOURCES.txt +7 -0
- pybuglog-0.1.0/pybuglog.egg-info/dependency_links.txt +1 -0
- pybuglog-0.1.0/pybuglog.egg-info/top_level.txt +1 -0
- pybuglog-0.1.0/pybuglog.py +27 -0
- pybuglog-0.1.0/setup.cfg +4 -0
- pybuglog-0.1.0/setup.py +13 -0
pybuglog-0.1.0/PKG-INFO
ADDED
|
@@ -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!
|
pybuglog-0.1.0/README.md
ADDED
|
@@ -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 @@
|
|
|
1
|
+
|
|
@@ -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)
|
pybuglog-0.1.0/setup.cfg
ADDED
pybuglog-0.1.0/setup.py
ADDED
|
@@ -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
|
+
)
|