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

Pass Logs to a Database #46

Open
threeal opened this issue Feb 6, 2023 · 0 comments · May be fixed by #55
Open

Pass Logs to a Database #46

threeal opened this issue Feb 6, 2023 · 0 comments · May be fixed by #55
Assignees
Labels

Comments

@threeal
Copy link
Owner

threeal commented Feb 6, 2023

Use file based database (maybe sqlite?).

  • Put database in ~/.bro/log.db (this one only store logs).
  • Modify log functions (log.Printf, log.Fatalf, etc.) so it could pass logs to that database.

The logs will be stored for each session (start -> exit), so there are two tables:

  • List of session.
  • List of logs.

The logs at least should store the following data:

  • Time.
  • Session Id.
  • Topic (could be empty for now).
  • Content.

While session for now just store start time of the session.

@threeal threeal added the feat label Feb 6, 2023
@LordRonz LordRonz self-assigned this Feb 6, 2023
@LordRonz LordRonz linked a pull request Feb 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants