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

GPT Prompt Help #199

Open
JonathanTurnock opened this issue Dec 28, 2024 · 0 comments
Open

GPT Prompt Help #199

JonathanTurnock opened this issue Dec 28, 2024 · 0 comments

Comments

@JonathanTurnock
Copy link

JonathanTurnock commented Dec 28, 2024

Hi everyone,

I recently worked on configuring this plugin and, like others have mentioned, it was a bit tricky to set up. To make things easier, I used ChatGPT for assistance.

Here’s the prompt I used in case it’s helpful to anyone!


Prompt:

I have a log entry format and need help configuring the Jetbrains ideolog plugin to extract specific components using regex. Here's an example log entry:

[22:00:20.988] INFO (app.ts/26216): Listening on port 8080

Please provide the following details:

  1. Message Pattern: A regex pattern to match the entire string and extract the relevant components.
  2. Message Start Pattern: A regex pattern to match everything after the colon (:).
  3. Time Format: Corresponding Oracle Time Pattern for the time field.
  4. Capture Group Indices:
    • Time Capture Group: The index for capturing the timestamp (e.g., 22:00:20.988).
    • Severity Capture Group: The index for capturing the log severity (e.g., INFO).
    • Category Capture Group: The index for capturing everything inside the parentheses (e.g., app.ts/26216).

Ensure the regex is well-explained and can be reused for similar log formats. Provide additional tips for tweaking the pattern if necessary.

Use the documentation for reference: https://github.com/JetBrains/ideolog/wiki/Custom-Log-Formats

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

No branches or pull requests

1 participant