Skip to content

Commit

Permalink
remove log filter from decoder option template
Browse files Browse the repository at this point in the history
  • Loading branch information
davemarco committed Sep 6, 2024
1 parent 8699154 commit ee9e3d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion new-log-viewer/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ const ConfigForm = () => {
key: CONFIG_KEY.DECODER_OPTIONS,
value: {
formatString: formatString,
logLevelFilter: null,
logLevelKey: logLevelKey,
timestampKey: timestampKey,
},
Expand Down
7 changes: 1 addition & 6 deletions new-log-viewer/src/typings/decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,19 @@ import {
LogLevelFilter,
} from "./logs";

Check failure on line 8 in new-log-viewer/src/typings/decoders.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

new-log-viewer/src/typings/decoders.ts#L8

[import/newline-after-import] Expected 2 empty lines after import statement not followed by another import.


interface LogEventCount {
numValidEvents: number,
numInvalidEvents: number,
}

interface GenericDecoderOptions {
logLevelFilter: LogLevelFilter,
}

/**
* Options for the JSONL decoder.
*
* @property formatString The format string to use to serialize records as plain text.
* @property logLevelKey The key of the kv-pair that contains the log level in every record.
* @property timestampKey The key of the kv-pair that contains the timestamp in every record.
*/
interface JsonlDecoderOptions extends GenericDecoderOptions {
interface JsonlDecoderOptions {
formatString: string,
logLevelKey: string,
timestampKey: string,
Expand Down

0 comments on commit ee9e3d8

Please sign in to comment.