|
|
@@ -12,13 +12,48 @@ class async_logger(logger):
|
|
|
That log info level message.
|
|
|
|
|
|
async warning(content, *args, **kwargs)
|
|
|
-
|
|
|
+ That log warning level message.
|
|
|
+
|
|
|
+ async error(content, *args, **kwargs)
|
|
|
+ That log error level message.
|
|
|
+
|
|
|
+ async critical(content, *args, **kwargs)
|
|
|
+ That log critical level message.
|
|
|
+
|
|
|
+ async log(level, content, *args, **kwargs)
|
|
|
+ That generally save content to log with given level.
|
|
|
"""
|
|
|
|
|
|
async def info(self, content: str, *args, **kwargs) -> None:
|
|
|
+ """
|
|
|
+ That log info level message.
|
|
|
+
|
|
|
+ Parameters
|
|
|
+ ----------
|
|
|
+ content : str
|
|
|
+ Content to store in the log.
|
|
|
+
|
|
|
+ *args, **kwargs
|
|
|
+ When any of that parameters had been given, then format funcion
|
|
|
+ hed been used on the content.
|
|
|
+ """
|
|
|
+
|
|
|
await self.log(levels.info, content, *args, **kwargs)
|
|
|
|
|
|
async def warning(self, content: str, *args, **kwargs) -> None:
|
|
|
+ """
|
|
|
+ That log info level message.
|
|
|
+
|
|
|
+ Parameters
|
|
|
+ ----------
|
|
|
+ content : str
|
|
|
+ Content to store in the log.
|
|
|
+
|
|
|
+ *args, **kwargs
|
|
|
+ When any of that parameters had been given, then format funcion
|
|
|
+ hed been used on the content.
|
|
|
+ """
|
|
|
+
|
|
|
await self.log(levels.warning, content, *args, **kwargs)
|
|
|
|
|
|
async def error(self, content: str, *args, **kwargs) -> None:
|