simpler-logging 1.1.1__tar.gz → 1.2.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: simpler-logging
3
- Version: 1.1.1
3
+ Version: 1.2.0
4
4
  Summary: Simple zero-setup logging.
5
5
  Keywords: logging,logger,simple,zero-setup
6
6
  Author: minoupower554
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "simpler-logging"
3
- version = "1.1.1"
3
+ version = "1.2.0"
4
4
  description = "Simple zero-setup logging."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -5,6 +5,7 @@ logger = Logger("Main")
5
5
 
6
6
  debug = logger.debug
7
7
  info = logger.info
8
+ warn = logger.warn
8
9
  warning = logger.warn
9
10
  error = logger.error
10
11
  fatal = logger.fatal
@@ -93,6 +93,7 @@ class Logger:
93
93
  """Log a warning message."""
94
94
  self.log(LogLevel.WARN, msg, *args, **kwargs)
95
95
 
96
+ warning = warn
96
97
 
97
98
  def error(self, msg: str, *args, **kwargs) -> None:
98
99
  """Log an error message."""
File without changes