Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Filter CONTAINS always checks Stacktrace column #23

Open
arthuratplayableworlds opened this issue Oct 9, 2024 · 4 comments
Open

Comments

@arthuratplayableworlds
Copy link

arthuratplayableworlds commented Oct 9, 2024

I'm using Windows, in cmd.

At first I thought the local filtering just didn't work, but after playing with it, I've found some things...
If I do a simple search, like "INFO", it will search for that text in all fields, as I'd expect.
If I do Level CONTAINS "INFO", it returns no results (although I clearly have logs with Level INFO.)

Interestingly, if I do Level CONTAINS "Logger", I get results! But these results contain the word "Logger" in the "Stacktrace" column, not in the Level column.

This seems to be 100% consistent. If I do Message CONTAINS "Logger", I also get results where Stacktrace includes "Logger". So regardless of what column I specify in the filter, it always uses the stacktrace column.

image

In this screenshot you can see I'm checking if the timestamp contains Logger. Obviously, it doesn't.
Here's the expanded log:
image

@aurc
Copy link
Owner

aurc commented Oct 9, 2024 via email

@aurc
Copy link
Owner

aurc commented Oct 10, 2024

@arthuratplayableworlds, I could not reproduce, please provide a sample log, any template you're using to render the logs and I'll try reproducing again.

@arthuratplayableworlds
Copy link
Author

image

I can't attach the template but this is its contents:

    - name: Timestamp
      type: string
      color:
        foreground: white
        background: black
      max-width: 24
    - name: Level
      type: string
      color:
        foreground: white
        background: black
      max-width: 6
      color-when:
        - match-value: ERROR
          color:
            foreground: orangered
            background: ""
        - match-value: WARN
          color:
            foreground: olive
            background: ""
        - match-value: FATAL
          color:
            foreground: aliceblue
            background: lavender
        - match-value: INFO
          color:
            foreground: cornflowerblue
            background: ""
        - match-value: DEBUG
          color:
            foreground: aquamarine
            background: ""
        - match-value: VERBOSE
          color:
            foreground: silver
            background: ""
    - name: Message
      type: string
      color:
        foreground: white
        background: black
      max-width: 100
    - name: Stacktrace
      type: string
      color:
        foreground: white
        background: black
      max-width: 10

and the log:
log.txt

@arthuratplayableworlds arthuratplayableworlds removed their assignment Oct 21, 2024
@arthuratplayableworlds
Copy link
Author

@aurc updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants