Skip to content

Commit

Permalink
Added application name to source
Browse files Browse the repository at this point in the history
  • Loading branch information
TBThomas56 committed Apr 30, 2024
1 parent 29269eb commit b7bf897
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ function App() {
<TableBody>
{logs.map((log,index) => (
<TableRow sx={{backgroundColor:getColor(log_lvl[index])}}>
<TableCell>{time[index]}</TableCell>
<TableCell>{debug[index]}</TableCell>
<TableCell>{source[index]}</TableCell>
<TableCell>{log}</TableCell>
<TableCell><pre>{time[index]}</pre></TableCell>
<TableCell><pre>{debug[index]}</pre></TableCell>
<TableCell><pre>{source[index]}</pre></TableCell>
<TableCell><pre>{log}</pre></TableCell>
{/* sx={{ '&:last-child td, &:last-child th': { border: 0 } }} */}
</TableRow>
))}
Expand Down Expand Up @@ -175,7 +175,7 @@ function getMessage(logging: JSON): undefined | getMessageReturn {
`${formattedTimestamp}`
);
source.push(
`${logs[msg]["message"]["source"]}`
`Application: ${logs[msg]["message"]["application_name"]} \n${logs[msg]["message"]["source"]}`
)
const text = logs[msg]["message"]["message"];
const [debug_level, log_message,level] = logLevel(text);
Expand Down

0 comments on commit b7bf897

Please sign in to comment.