Tear down custom warning notification.
185280
def _teardown_log_prefix(self):
        """"""
        self._logger_console_fmtter.prefix = ''
        self._logger_console_fmtter.plugin_id = ''
        self._logger_file_fmtter.prefix = ' '
        self._logger_file_fmtter.plugin_id = ''
281574
def normal_notification(text, options = {})
      base = {
        aps: {
          alert: {
            title: nil,
            subtitle: nil,
            body: text
          },
          sound: options.delete(:sound),
          badge: 1,
          'mutable-content': 1,
          'content-available': 1
        }
      }
      base.merge(options)
    end
161557
def warn(msg, level=0, prefix=True):
    
    if will_print(level):
        printer(("WARNING: " if prefix else "") + msg, "yellow")
514749
def destroy(self):
        
        builder = self.builder
        NotificationManager.cancel_notification(builder)
        del self.builder
        super(AndroidNotification, self).destroy()
495071
public void cancel(final int id) {
        final BaseNotificationItem notification = remove(id);

        if (notification == null) {
            return;
        }

        notification.cancel();
    }
1372143
def warning(message, code='WARNING'):
    

    now = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
    output = now + ' [' + torn.plugins.colors.WARNING + \
            code + torn.plugins.colors.ENDC + '] \t' + \
            message
    print(output)
117802
function warnOnce(message) {
  if (!(previousWarnOnceMessages.indexOf(message) !== -1)) {
    previousWarnOnceMessages.push(message);
    warn(message);
  }
}
474406
def warning(self, request, message, extra_tags='', fail_silently=False):
        """"""
        add(self.target_name, request, constants.WARNING, message, extra_tags=extra_tags,
            fail_silently=fail_silently)
928771
def warn(self, text):
		
		self.logger.warn("{}{}".format(self.message_prefix, text))
141731
def critical(message, category=PsyPlotCritical, logger=None):
    """"""
    if logger is not None:
        message = "[Critical warning by %s]\n%s" % (logger.name, message)
    warnings.warn(message, category, stacklevel=2)
1210956
def warn(message, category=PsyPlotWarning, logger=None):
    """"""
    if logger is not None:
        message = "[Warning by %s]\n%s" % (logger.name, message)
    warnings.warn(message, category, stacklevel=3)
769631
def warning(self, message, print_location=True):
        """"""
        msg = "Warning"
        if print_location and (exshared.location != None):
            wline = lineno(exshared.location, exshared.text)
            wcol = col(exshared.location, exshared.text)
            wtext = line(exshared.location, exshared.text)
            msg += " at line %d, col %d" % (wline, wcol)
        msg += ": %s" % message
        if print_location and (exshared.location != None):
            msg += "\n%s" % wtext
        print(msg)
852759
public static function cancelAllNonPersistent()
    {
        foreach (static::getAllNotifications() as $id => $notification) {
            if (Notification::TYPE_PERSISTENT != $notification->type) {
                static::removeNotification($id);
            }
        }
    }
785243
def warn_deprecated(message, stacklevel=2):  # pragma: no cover
    """"""

    warnings.warn(
        message,
        category=DeprecationWarning,
        stacklevel=stacklevel
    )
656028
def display_warning(self, message, short_message,
                        style=wx.OK | wx.ICON_WARNING):
        """"""

        dlg = GMD.GenericMessageDialog(self.main_window, message,
                                       short_message, style)
        dlg.ShowModal()
        dlg.Destroy()
1342456
def disable_notifications(self):
        
        # todo: #783 create a dedicated brok for global parameters
        if self.my_conf.enable_notifications:
            self.my_conf.modified_attributes |= DICT_MODATTR["MODATTR_NOTIFICATIONS_ENABLED"].value
            self.my_conf.enable_notifications = False
            self.my_conf.explode_global_conf()
            self.daemon.update_program_status()
1174591
def warning(request, message, extra_tags='', fail_silently=False):
    """"""
    add_message(request, constants.WARNING, message, extra_tags=extra_tags,
                fail_silently=fail_silently)