diff --git a/src/mlpro/bf/various.py b/src/mlpro/bf/various.py index 74e15137a..1c473335d 100644 --- a/src/mlpro/bf/various.py +++ b/src/mlpro/bf/various.py @@ -178,8 +178,6 @@ def __init__(self, p_logging=C_LOG_ALL): self.C_LOG_TYPE_S: self.C_COL_SUCCESS, } - self._write = sys.stdout.write - self._switch_logging( p_logging=p_logging ) if self.C_INST_MSG: @@ -258,7 +256,7 @@ def _log_on(self, p_type, *p_args): now = datetime.now().isoformat( sep = ' ' ) col = self._color_map.get(p_type, self.C_COL_RESET) arg_str = ' '.join(map(str, p_args)) - self._write( col + now + ' ' + p_type + ' ' + self.C_TYPE + ' "' + self.C_NAME + '": ' + arg_str + self.C_COL_RESET + '\n' ) + print( col + now + ' ' + p_type + ' ' + self.C_TYPE + ' "' + self.C_NAME + '": ' + arg_str + self.C_COL_RESET )