Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
davemarco committed Nov 22, 2024
1 parent 5c1d573 commit 1942e04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/modals/SettingsModal/SettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ const CONFIG_FORM_FIELDS = [
\`{<field-name>[:<formatter-name>[:<formatter-options>]]}\`, where \`field-name\` is
required, while \`formatter-name\` and \`formatter-options\` are optional. For example,
the following placeholder would format a timestamp field with name \`@timestamp\`:
\`{@timestamp:timestamp:YYYY-MM-DD HH\\:mm\\:ss.SSS}\`.`,
\`{@timestamp:timestamp:YYYY-MM-DD HH\\:mm\\:ss.SSS}\`. The default setting is
an empty string which will print all fields formatted as JSON.`,
initialValue: getConfig(CONFIG_KEY.DECODER_OPTIONS).formatString,
label: "Decoder: Format string",
name: LOCAL_STORAGE_KEY.DECODER_OPTIONS_FORMAT_STRING,
Expand Down
6 changes: 3 additions & 3 deletions src/contexts/StateContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ const StateContextProvider = ({children}: StateContextProviderProps) => {
callback: () => { setIsSettingsModalOpen(true); },
},
level: LOG_LEVEL.INFO,
message: "Open settings to configure a format" +
" string to improve readability of structured logs",
message: "Input a custom format string in settings dialog" +
" to improve readability of JSON logs",
timeoutMillis: 2 * DEFAULT_AUTO_DISMISS_TIMEOUT_MILLIS,
title: "Configure Format String",
title: "Format JSON Logs",
});
}
break;
Expand Down

0 comments on commit 1942e04

Please sign in to comment.