python-coloured-logger 0.1.1__tar.gz → 1.0.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.
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/PKG-INFO +1 -1
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/pyproject.toml +1 -1
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/src/coloured_logger/formatter.py +7 -1
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/src/python_coloured_logger.egg-info/PKG-INFO +1 -1
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/LICENSE +0 -0
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/README.md +0 -0
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/setup.cfg +0 -0
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/src/coloured_logger/__init__.py +0 -0
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/src/python_coloured_logger.egg-info/SOURCES.txt +0 -0
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/src/python_coloured_logger.egg-info/dependency_links.txt +0 -0
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/src/python_coloured_logger.egg-info/top_level.txt +0 -0
- {python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/tests/test_formatter.py +0 -0
{python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/src/coloured_logger/formatter.py
RENAMED
|
@@ -75,7 +75,7 @@ def _ensure_success_level() -> None:
|
|
|
75
75
|
|
|
76
76
|
def setup_logging(
|
|
77
77
|
logger_name: Optional[str] = None,
|
|
78
|
-
level: int = logging.
|
|
78
|
+
level: int = logging.DEBUG,
|
|
79
79
|
stream: Optional[TextIO] = None,
|
|
80
80
|
use_color: Optional[bool] = None,
|
|
81
81
|
datefmt: Optional[str] = None,
|
|
@@ -106,6 +106,9 @@ class log:
|
|
|
106
106
|
self.string = "".join(str(message) for message in messages)
|
|
107
107
|
self.logger = get_logger(__name__)
|
|
108
108
|
|
|
109
|
+
def debug(self) -> None:
|
|
110
|
+
self.logger.debug(self.string)
|
|
111
|
+
|
|
109
112
|
def success(self) -> None:
|
|
110
113
|
self.logger.success(self.string)
|
|
111
114
|
|
|
@@ -117,3 +120,6 @@ class log:
|
|
|
117
120
|
|
|
118
121
|
def error(self) -> None:
|
|
119
122
|
self.logger.error(self.string)
|
|
123
|
+
|
|
124
|
+
def critical(self) -> None:
|
|
125
|
+
self.logger.critical(self.string)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_coloured_logger-0.1.1 → python_coloured_logger-1.0.0}/src/coloured_logger/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|