code: def msg_warn(message):
      
      to_stdout(" (!) {message}".format(message=message),
                colorf=yellow, bold=True)
      if _logger:
          _logger.warn(message)
docs: Log a warning message
  
      :param message: the message to be logged