Beispiel #1
0
def configure_syslog_server(app: Flask) -> None:
    server = SyslogServer(app.config["SYSLOG_ADDR"], app.config["SYSLOG_PORT"])
    server.start()
Beispiel #2
0
def configure_syslog_server(app):
    server = SyslogServer(app.config['SYSLOG_ADDR'], app.config['SYSLOG_PORT'])
    server.start()
Beispiel #3
0
def save_syslog_server():
    SyslogServer.query.delete()
    syslog_server = SyslogServer(**request.form.to_dict())
    db.session.add(syslog_server)
    db.session.commit()
    return jsonify({'success': True})