log21 2.8.0__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.
Files changed (27) hide show
  1. {log21-2.8.0 → log21-2.8.1b0}/PKG-INFO +3 -7
  2. {log21-2.8.0 → log21-2.8.1b0}/README.md +2 -6
  3. {log21-2.8.0 → log21-2.8.1b0}/pyproject.toml +1 -1
  4. {log21-2.8.0 → log21-2.8.1b0}/src/log21/StreamHandler.py +1 -1
  5. {log21-2.8.0 → log21-2.8.1b0}/src/log21/__init__.py +3 -3
  6. {log21-2.8.0 → log21-2.8.1b0}/src/log21.egg-info/PKG-INFO +3 -7
  7. {log21-2.8.0 → log21-2.8.1b0}/LICENSE.txt +0 -0
  8. {log21-2.8.0 → log21-2.8.1b0}/setup.cfg +0 -0
  9. {log21-2.8.0 → log21-2.8.1b0}/src/log21/Argparse.py +0 -0
  10. {log21-2.8.0 → log21-2.8.1b0}/src/log21/Argumentify.py +0 -0
  11. {log21-2.8.0 → log21-2.8.1b0}/src/log21/Colors.py +0 -0
  12. {log21-2.8.0 → log21-2.8.1b0}/src/log21/CrashReporter/Formatters.py +0 -0
  13. {log21-2.8.0 → log21-2.8.1b0}/src/log21/CrashReporter/Reporters.py +0 -0
  14. {log21-2.8.0 → log21-2.8.1b0}/src/log21/CrashReporter/__init__.py +0 -0
  15. {log21-2.8.0 → log21-2.8.1b0}/src/log21/FileHandler.py +0 -0
  16. {log21-2.8.0 → log21-2.8.1b0}/src/log21/Formatters.py +0 -0
  17. {log21-2.8.0 → log21-2.8.1b0}/src/log21/Levels.py +0 -0
  18. {log21-2.8.0 → log21-2.8.1b0}/src/log21/Logger.py +0 -0
  19. {log21-2.8.0 → log21-2.8.1b0}/src/log21/LoggingWindow.py +0 -0
  20. {log21-2.8.0 → log21-2.8.1b0}/src/log21/Manager.py +0 -0
  21. {log21-2.8.0 → log21-2.8.1b0}/src/log21/PPrint.py +0 -0
  22. {log21-2.8.0 → log21-2.8.1b0}/src/log21/ProgressBar.py +0 -0
  23. {log21-2.8.0 → log21-2.8.1b0}/src/log21/TreePrint.py +0 -0
  24. {log21-2.8.0 → log21-2.8.1b0}/src/log21.egg-info/SOURCES.txt +0 -0
  25. {log21-2.8.0 → log21-2.8.1b0}/src/log21.egg-info/dependency_links.txt +0 -0
  26. {log21-2.8.0 → log21-2.8.1b0}/src/log21.egg-info/requires.txt +0 -0
  27. {log21-2.8.0 → 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.0
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,13 +92,9 @@ pip install git+https://github.com/MPCodeWriter21/log21
92
92
  Changes
93
93
  -------
94
94
 
95
- ### 2.8.0
95
+ ### 2.8.1b0
96
96
 
97
- + Update python version
98
- + Renamed `crash_report.log` to `.crash_report.log`.
99
- + Added "force" error handling method to `Logger.add_level`.
100
- + Changed the adding level error handling method to "ignore".
101
- + Ability to add new methods to the Logger object for each custom level.
97
+ + Fixed setting level using `log21.basic_config`
102
98
 
103
99
  [Full CHANGELOG](https://github.com/MPCodeWriter21/log21/blob/master/CHANGELOG.md)
104
100
 
@@ -61,13 +61,9 @@ pip install git+https://github.com/MPCodeWriter21/log21
61
61
  Changes
62
62
  -------
63
63
 
64
- ### 2.8.0
64
+ ### 2.8.1b0
65
65
 
66
- + Update python version
67
- + Renamed `crash_report.log` to `.crash_report.log`.
68
- + Added "force" error handling method to `Logger.add_level`.
69
- + Changed the adding level error handling method to "ignore".
70
- + Ability to add new methods to the Logger object for each custom level.
66
+ + Fixed setting level using `log21.basic_config`
71
67
 
72
68
  [Full CHANGELOG](https://github.com/MPCodeWriter21/log21/blob/master/CHANGELOG.md)
73
69
 
@@ -26,7 +26,7 @@ dependencies = [
26
26
  "webcolors",
27
27
  "docstring-parser"
28
28
  ]
29
- version = "2.8.0"
29
+ version = "2.8.1b0"
30
30
 
31
31
  [tool.setuptools.packages.find]
32
32
  where = ["src"]
@@ -53,7 +53,7 @@ class StreamHandler(_StreamHandler):
53
53
  msg = _hex_escape.sub(
54
54
  '', _ansi_escape.sub('', record.msg.strip(' \t\n\x0b\x0c'))
55
55
  )
56
- if '\r' in msg[1:-1]:
56
+ if '\r' == msg[:1]:
57
57
  file_descriptor = getattr(self.stream, 'fileno', None)
58
58
  if file_descriptor:
59
59
  file_descriptor = file_descriptor()
@@ -23,7 +23,7 @@ from log21.ProgressBar import ProgressBar
23
23
  from log21.LoggingWindow import LoggingWindow, LoggingWindowHandler
24
24
  from log21.StreamHandler import StreamHandler, ColorizingStreamHandler
25
25
 
26
- __version__ = "2.8.0"
26
+ __version__ = "2.8.1b0"
27
27
  __author__ = "CodeWriter21 (Mehrad Pooryoussof)"
28
28
  __github__ = "Https://GitHub.com/MPCodeWriter21/log21"
29
29
  __all__ = [
@@ -517,8 +517,8 @@ def basic_config(
517
517
  if handler.formatter is None:
518
518
  handler.setFormatter(formatter)
519
519
  root.addHandler(handler)
520
- if level is not None:
521
- root.setLevel(level)
520
+ if level is not None:
521
+ root.setLevel(level)
522
522
 
523
523
 
524
524
  basicConfig = basic_config
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: log21
3
- Version: 2.8.0
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,13 +92,9 @@ pip install git+https://github.com/MPCodeWriter21/log21
92
92
  Changes
93
93
  -------
94
94
 
95
- ### 2.8.0
95
+ ### 2.8.1b0
96
96
 
97
- + Update python version
98
- + Renamed `crash_report.log` to `.crash_report.log`.
99
- + Added "force" error handling method to `Logger.add_level`.
100
- + Changed the adding level error handling method to "ignore".
101
- + Ability to add new methods to the Logger object for each custom level.
97
+ + Fixed setting level using `log21.basic_config`
102
98
 
103
99
  [Full CHANGELOG](https://github.com/MPCodeWriter21/log21/blob/master/CHANGELOG.md)
104
100
 
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