Compare commits

..

2 Commits

Author SHA1 Message Date
65e25915c0
Updated version 2023-07-29 22:28:15 +01:00
d6afb45a73
Updated _logger.py
Fixed bug in class@debug() method where the appropriate level wasn't being passed.
2023-07-29 22:27:35 +01:00
2 changed files with 3 additions and 4 deletions

View File

@ -4,7 +4,7 @@
[project] [project]
name = "clog" name = "clog"
version = "0.2.0-alpha" version = "0.2.1-alpha"
description = "Logging as simple as putting on a shoe." description = "Logging as simple as putting on a shoe."
readme = "README.md" readme = "README.md"
requires-python = ">=3.7" requires-python = ">=3.7"

View File

@ -204,7 +204,7 @@ class Logger:
method can be invoked directly afterwards (or later) to write method can be invoked directly afterwards (or later) to write
the same message to the console. the same message to the console.
""" """
self.writeLog(*value, sep=sep, end=end, wrapping=wrapping, strace=strace) self.writeLog(*value, level=common.LogLevel.DEBUG, sep=sep, end=end, wrapping=wrapping, strace=strace)
self.__std_pipe = sys.stderr self.__std_pipe = sys.stderr
self.__log_info = LOG_INFO_TUPLE(IS_STDERR_REDIR, common.LogLevel.DEBUG, value, sep, end) self.__log_info = LOG_INFO_TUPLE(IS_STDERR_REDIR, common.LogLevel.DEBUG, value, sep, end)
@ -224,8 +224,7 @@ class Logger:
method can be invoked directly afterwards (or later) to write method can be invoked directly afterwards (or later) to write
the same message to the console. the same message to the console.
""" """
self.writeLog(*value, level=common.LogLevel.WARN, sep=sep, self.writeLog(*value, level=common.LogLevel.WARN, sep=sep, end=end, wrapping=wrapping, strace=strace)
end=end, wrapping=wrapping, strace=strace)
self.__std_pipe = sys.stderr self.__std_pipe = sys.stderr
self.__log_info = LOG_INFO_TUPLE(IS_STDERR_REDIR, common.LogLevel.WARN, value, sep, end) self.__log_info = LOG_INFO_TUPLE(IS_STDERR_REDIR, common.LogLevel.WARN, value, sep, end)