Skip to content

Format is not recognized #185

@MrFiregore

Description

@MrFiregore

Pattern:

<State>
  <highlightingPatterns>
    <LogHighlightingPattern enabled="true" pattern="^\s*(e(rror)?|severe)\s*$" captureGroup="-1" action="HIGHLIGHT_LINE" fg="-39836" bold="true" italic="false" stripe="true" uuid="de2d3bb2-78c9-4beb-835e-d483c35c07b6" />
    <LogHighlightingPattern enabled="true" pattern="^\s*w(arn(ing)?)?\s*$" captureGroup="-1" action="HIGHLIGHT_LINE" fg="-6329600" bold="true" italic="false" stripe="false" uuid="11ff1574-2118-4722-905a-61bec89b079e" />
    <LogHighlightingPattern enabled="true" pattern="^\s*i(nfo)?\s*$" captureGroup="-1" action="HIGHLIGHT_LINE" fg="-10316203" bold="false" italic="false" stripe="false" uuid="5e882ebc-2179-488b-8e1a-2fe488636f36" />
  </highlightingPatterns>
  <hiddenSubstrings />
  <parsingPatterns>
    <LogParsingPattern enabled="true" name="JSON" pattern="^\{[\s,]*.*\&quot;level\&quot;\s*:\s*\&quot;(.*?(?&lt;!\\))\&quot;[\s,]*.*\&quot;message\&quot;\s*:\s*\&quot;(.*?(?&lt;!\\))\&quot;[\s,]*.*\&quot;timestamp\&quot;\s*:\s*\&quot;(.*?(?&lt;!\\))\&quot;[\s,]*.*\}$" timePattern="yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" linePattern="^\{" timeId="2" severityId="0" categoryId="1" fullmatch="true" uuid="f73e6ea2-5750-428f-b8db-5a2b8470d6af" />
  </parsingPatterns>
  <settingsVersion>8</settingsVersion>
  <errorStripeModel>heatmap</errorStripeModel>
  <readonlySizeThreshold>16</readonlySizeThreshold>
  <highlight_links>true</highlight_links>
</State>

example log:
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"error","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"info","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"warning","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}
{"level":"debug","message":"Unhandled promise:","timestamp":"2024-04-02T22:03:36.679Z"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions