from flask import Flask
from flask_restful import Api
from .log_resource import LogResource
#from .restart_resource import RestartResource
import logging

app = Flask(__name__)

def init():
    log = logging.getLogger('werkzeug')
    log.setLevel(logging.ERROR)
    api = Api(app)
    api.add_resource(LogResource, '/log/<string:path>/<string:retrieval_key>')
    #api.add_resource(RestartResource, '/restart')
