File size: 414 Bytes
2f87aad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
import os

st.set_page_config(
    page_title="Logs",
    page_icon="πŸ“Š",
)

from utils.st_logs import parse_log_buffer

handler = st.session_state['handler']
if handler is not None:
    records = parse_log_buffer(handler.buffer)
    st.dataframe(records[::-1], use_container_width=True,)
    st.info(f"Length of records: {len(records)}")
else:
    st.error("⚠️ No log handler found!")