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 e068382 commit 29b1785
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 @@ -136,10 +136,10 @@ function App() {
<TableBody>
{logs.map((log,index) => (
<TableRow>
<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 @@ -170,7 +170,7 @@ function getMessage(logging: JSON): undefined | string[][] {
`${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] = logLevel(text);
Expand Down

0 comments on commit 29b1785

Please sign in to comment.