log21 2.8.1__tar.gz → 2.8.1b0__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.
- {log21-2.8.1 → log21-2.8.1b0}/PKG-INFO +3 -6
- {log21-2.8.1 → log21-2.8.1b0}/README.md +2 -5
- {log21-2.8.1 → log21-2.8.1b0}/pyproject.toml +1 -7
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/__init__.py +13 -12
- {log21-2.8.1 → log21-2.8.1b0}/src/log21.egg-info/PKG-INFO +3 -6
- {log21-2.8.1 → log21-2.8.1b0}/LICENSE.txt +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/setup.cfg +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/Argparse.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/Argumentify.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/Colors.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/CrashReporter/Formatters.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/CrashReporter/Reporters.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/CrashReporter/__init__.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/FileHandler.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/Formatters.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/Levels.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/Logger.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/LoggingWindow.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/Manager.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/PPrint.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/ProgressBar.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/StreamHandler.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21/TreePrint.py +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21.egg-info/SOURCES.txt +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21.egg-info/dependency_links.txt +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21.egg-info/requires.txt +0 -0
- {log21-2.8.1 → log21-2.8.1b0}/src/log21.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: log21
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.1b0
|
|
4
4
|
Summary: A simple logging package that helps you log colorized messages in Windows console.
|
|
5
5
|
Author-email: "CodeWriter21(Mehrad Pooryoussof)" <CodeWriter21@gmail.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -92,12 +92,9 @@ pip install git+https://github.com/MPCodeWriter21/log21
|
|
|
92
92
|
Changes
|
|
93
93
|
-------
|
|
94
94
|
|
|
95
|
-
### 2.8.
|
|
95
|
+
### 2.8.1b0
|
|
96
96
|
|
|
97
|
-
+ Fixed Carriage Return Handling.
|
|
98
97
|
+ Fixed setting level using `log21.basic_config`
|
|
99
|
-
+ Added more configuration for developer tools to the `pyproject.toml` file.
|
|
100
|
-
+ Added pre-commit.
|
|
101
98
|
|
|
102
99
|
[Full CHANGELOG](https://github.com/MPCodeWriter21/log21/blob/master/CHANGELOG.md)
|
|
103
100
|
|
|
@@ -236,7 +233,7 @@ for character in text:
|
|
|
236
233
|
|
|
237
234
|
window.error(colored_text)
|
|
238
235
|
|
|
239
|
-
# See more examples in
|
|
236
|
+
# See more examples in
|
|
240
237
|
# https://github.com/MPCodeWriter21/log21/blob/066efc1e72542531012d36974bbf6cd4c5941378/log21/LoggingWindow.py#L155
|
|
241
238
|
# and
|
|
242
239
|
# https://github.com/MPCodeWriter21/log21/blob/066efc1e72542531012d36974bbf6cd4c5941378/log21/__init__.py#L144
|
|
@@ -61,12 +61,9 @@ pip install git+https://github.com/MPCodeWriter21/log21
|
|
|
61
61
|
Changes
|
|
62
62
|
-------
|
|
63
63
|
|
|
64
|
-
### 2.8.
|
|
64
|
+
### 2.8.1b0
|
|
65
65
|
|
|
66
|
-
+ Fixed Carriage Return Handling.
|
|
67
66
|
+ Fixed setting level using `log21.basic_config`
|
|
68
|
-
+ Added more configuration for developer tools to the `pyproject.toml` file.
|
|
69
|
-
+ Added pre-commit.
|
|
70
67
|
|
|
71
68
|
[Full CHANGELOG](https://github.com/MPCodeWriter21/log21/blob/master/CHANGELOG.md)
|
|
72
69
|
|
|
@@ -205,7 +202,7 @@ for character in text:
|
|
|
205
202
|
|
|
206
203
|
window.error(colored_text)
|
|
207
204
|
|
|
208
|
-
# See more examples in
|
|
205
|
+
# See more examples in
|
|
209
206
|
# https://github.com/MPCodeWriter21/log21/blob/066efc1e72542531012d36974bbf6cd4c5941378/log21/LoggingWindow.py#L155
|
|
210
207
|
# and
|
|
211
208
|
# https://github.com/MPCodeWriter21/log21/blob/066efc1e72542531012d36974bbf6cd4c5941378/log21/__init__.py#L144
|
|
@@ -26,7 +26,7 @@ dependencies = [
|
|
|
26
26
|
"webcolors",
|
|
27
27
|
"docstring-parser"
|
|
28
28
|
]
|
|
29
|
-
version = "2.8.
|
|
29
|
+
version = "2.8.1b0"
|
|
30
30
|
|
|
31
31
|
[tool.setuptools.packages.find]
|
|
32
32
|
where = ["src"]
|
|
@@ -62,10 +62,4 @@ dedent_closing_brackets = true
|
|
|
62
62
|
[tool.isort]
|
|
63
63
|
line_length = 88
|
|
64
64
|
combine_as_imports = true
|
|
65
|
-
length_sort = true
|
|
66
65
|
order_by_type = true
|
|
67
|
-
|
|
68
|
-
[tool.docformatter]
|
|
69
|
-
recursive = true
|
|
70
|
-
wrap-summaries = 88
|
|
71
|
-
wrap-descriptions = 88
|
|
@@ -23,17 +23,18 @@ from log21.ProgressBar import ProgressBar
|
|
|
23
23
|
from log21.LoggingWindow import LoggingWindow, LoggingWindowHandler
|
|
24
24
|
from log21.StreamHandler import StreamHandler, ColorizingStreamHandler
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
__version__ = "2.8.1b0"
|
|
27
|
+
__author__ = "CodeWriter21 (Mehrad Pooryoussof)"
|
|
28
|
+
__github__ = "Https://GitHub.com/MPCodeWriter21/log21"
|
|
28
29
|
__all__ = [
|
|
29
30
|
'ColorizingStreamHandler', 'DecolorizingFileHandler', 'ColorizingFormatter',
|
|
30
31
|
'DecolorizingFormatter', 'get_logger', 'Logger', 'Colors', 'get_color',
|
|
31
32
|
'get_colors', 'CRITICAL', 'FATAL', 'ERROR', 'WARNING', 'WARN', 'INFO', 'DEBUG',
|
|
32
33
|
'NOTSET', 'INPUT', 'StreamHandler', 'ColorizingArgumentParser', 'PrettyPrinter',
|
|
33
34
|
'pformat', 'pprint', 'pretty_print', 'tree_format', 'TreePrint', 'Manager',
|
|
34
|
-
'get_color_name', 'closest_color', 'ansi_escape', '
|
|
35
|
-
'debug', 'info', 'warning', 'warn', 'error', 'critical', 'fatal',
|
|
36
|
-
'log', 'basic_config', 'basicConfig', 'ProgressBar', 'progress_bar',
|
|
35
|
+
'get_color_name', 'closest_color', 'ansi_escape', '__version__', '__author__',
|
|
36
|
+
'__github__', 'debug', 'info', 'warning', 'warn', 'error', 'critical', 'fatal',
|
|
37
|
+
'exception', 'log', 'basic_config', 'basicConfig', 'ProgressBar', 'progress_bar',
|
|
37
38
|
'LoggingWindow', 'LoggingWindowHandler', 'get_logging_window', 'CrashReporter',
|
|
38
39
|
'console_reporter', 'file_reporter', 'argumentify'
|
|
39
40
|
]
|
|
@@ -45,7 +46,7 @@ _logging.setLoggerClass(Logger)
|
|
|
45
46
|
def _prepare_formatter(
|
|
46
47
|
fmt: _Optional[str] = None,
|
|
47
48
|
style: str = '%',
|
|
48
|
-
datefmt: str =
|
|
49
|
+
datefmt: str = "%H:%M:%S",
|
|
49
50
|
show_level: bool = True,
|
|
50
51
|
show_time: bool = True,
|
|
51
52
|
colorize_time_and_level: bool = True,
|
|
@@ -56,11 +57,11 @@ def _prepare_formatter(
|
|
|
56
57
|
# Prepares a formatting if the fmt was None
|
|
57
58
|
if not fmt:
|
|
58
59
|
style = '%'
|
|
59
|
-
fmt =
|
|
60
|
+
fmt = "%(message)s"
|
|
60
61
|
if show_level:
|
|
61
|
-
fmt =
|
|
62
|
+
fmt = "[%(levelname)s] " + fmt
|
|
62
63
|
if show_time:
|
|
63
|
-
fmt =
|
|
64
|
+
fmt = "[%(asctime)s] " + fmt
|
|
64
65
|
fmt = '\r' + fmt
|
|
65
66
|
|
|
66
67
|
if level_colors and not issubclass(formatter_class, ColorizingFormatter):
|
|
@@ -100,7 +101,7 @@ def get_logger(
|
|
|
100
101
|
show_level: bool = True,
|
|
101
102
|
colorize_time_and_level: bool = True,
|
|
102
103
|
fmt: _Optional[str] = None,
|
|
103
|
-
datefmt: str =
|
|
104
|
+
datefmt: str = "%H:%M:%S",
|
|
104
105
|
style: str = '%',
|
|
105
106
|
handle_carriage_return: bool = True,
|
|
106
107
|
handle_new_line: bool = True,
|
|
@@ -208,7 +209,7 @@ def get_logging_window(
|
|
|
208
209
|
show_level: bool = True,
|
|
209
210
|
colorize_time_and_level: bool = True,
|
|
210
211
|
fmt: _Optional[str] = None,
|
|
211
|
-
datefmt: str =
|
|
212
|
+
datefmt: str = "%H:%M:%S",
|
|
212
213
|
style: str = '%',
|
|
213
214
|
handle_carriage_return: bool = True,
|
|
214
215
|
handle_new_line: bool = True,
|
|
@@ -420,7 +421,7 @@ def basic_config(
|
|
|
420
421
|
stream=None,
|
|
421
422
|
filename=None,
|
|
422
423
|
filemode: str = 'a',
|
|
423
|
-
date_format: str =
|
|
424
|
+
date_format: str = "%H:%M:%S",
|
|
424
425
|
style: str = '%',
|
|
425
426
|
format_: _Optional[str] = None,
|
|
426
427
|
level: _Optional[_Union[int, str]] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: log21
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.1b0
|
|
4
4
|
Summary: A simple logging package that helps you log colorized messages in Windows console.
|
|
5
5
|
Author-email: "CodeWriter21(Mehrad Pooryoussof)" <CodeWriter21@gmail.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -92,12 +92,9 @@ pip install git+https://github.com/MPCodeWriter21/log21
|
|
|
92
92
|
Changes
|
|
93
93
|
-------
|
|
94
94
|
|
|
95
|
-
### 2.8.
|
|
95
|
+
### 2.8.1b0
|
|
96
96
|
|
|
97
|
-
+ Fixed Carriage Return Handling.
|
|
98
97
|
+ Fixed setting level using `log21.basic_config`
|
|
99
|
-
+ Added more configuration for developer tools to the `pyproject.toml` file.
|
|
100
|
-
+ Added pre-commit.
|
|
101
98
|
|
|
102
99
|
[Full CHANGELOG](https://github.com/MPCodeWriter21/log21/blob/master/CHANGELOG.md)
|
|
103
100
|
|
|
@@ -236,7 +233,7 @@ for character in text:
|
|
|
236
233
|
|
|
237
234
|
window.error(colored_text)
|
|
238
235
|
|
|
239
|
-
# See more examples in
|
|
236
|
+
# See more examples in
|
|
240
237
|
# https://github.com/MPCodeWriter21/log21/blob/066efc1e72542531012d36974bbf6cd4c5941378/log21/LoggingWindow.py#L155
|
|
241
238
|
# and
|
|
242
239
|
# https://github.com/MPCodeWriter21/log21/blob/066efc1e72542531012d36974bbf6cd4c5941378/log21/__init__.py#L144
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|