def METHOD_NAME(message, level='info', category='', duration=3500):
    """
    Log an alert that shows up on the webpage
    Parameters:
        message (str) -- the text string to show
        level (str) -- 'error', 'success', or 'info'
        category (str) -- unique category for supressing repetitive messages
        duration (int) -- how long to show the alert (in milliseconds)
        unique (bool) -- if true, 
    """
    _alerts.append({
        'id': len(_alerts),
        'time': round(time.time()*1000), #datetime.datetime.now().strftime('%I:%M:%S'),
        'level': level,
        'category': category,
        'message': message,
        'duration': duration
    })
    if len(_alerts) > 25:
        _alerts.pop(0)