예제 #1
0
async def get_logs_file(request, document):
    """Returns the html rendered log entry"""

    if document is None:
        abort(404)

    log_entry = LogEntry(app, document)

    return log_entry.render_html()
예제 #2
0
파일: app.py 프로젝트: VincyBot07/logviewer
async def get_logs_file(request, document):
    """Ritorna l'ingresso log renderizzato in HTML"""

    if document is None:
        abort(404)

    log_entry = LogEntry(app, document)

    return log_entry.render_html()
async def get_logs_file(request, key):
    """Returns the html rendered log entry"""
    document = await app.ctx.db.logs.find_one({"key": key})

    if document is None:
        abort(404)

    log_entry = LogEntry(app, document)

    return log_entry.render_html()
예제 #4
0
파일: app.py 프로젝트: hpenney2/logviewer
async def get_logs_file(request, key):
    """Returned the plain text rendered log entry"""

    document = await app.db.logs.find_one({'key': key})

    if document is None:
        abort(404)

    log_entry = LogEntry(app, document)

    return log_entry.render_html()