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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-coloured-logger
3
- Version: 0.1.1
3
+ Version: 1.0.0
4
4
  Summary: Simple coloured logging for Flask and FastAPI apps
5
5
  Author: Skulldorom
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-coloured-logger"
7
- version = "0.1.1"
7
+ version = "1.0.0"
8
8
  description = "Simple coloured logging for Flask and FastAPI apps"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -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.INFO,
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-coloured-logger
3
- Version: 0.1.1
3
+ Version: 1.0.0
4
4
  Summary: Simple coloured logging for Flask and FastAPI apps
5
5
  Author: Skulldorom
6
6
  License-Expression: MIT