diff --git a/wobbl_tools/text/log.py b/wobbl_tools/text/log.py index 0d2f6e1..ab38a34 100644 --- a/wobbl_tools/text/log.py +++ b/wobbl_tools/text/log.py @@ -52,10 +52,10 @@ class Log: :param prefix: An optional prefix that gets added at the beginning of the message. """ - logfile_msg = self.format_msg(msg, msg_type, self.file_colored, prefix) + "\n" + logfile_msg = self._format_msg(msg, msg_type, self.file_colored, prefix) + "\n" if self.console_out: - console_msg = self.format_msg(msg, msg_type, self.console_colored, prefix) + console_msg = self._format_msg(msg, msg_type, self.console_colored, prefix) print(console_msg) @@ -104,7 +104,7 @@ class Log: self.write(msg, "error", prefix) - def format_msg(self, msg: str, msg_type: str="info", colored: bool=True, prefix: str=""): + def _format_msg(self, msg: str, msg_type: str= "info", colored: bool=True, prefix: str= ""): if colored: formatted_msg = _msg_types[msg_type] + msg formatted_msg += format_string("§rs")