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

Logging System - Categories #46

Open
tjvezina opened this issue Oct 25, 2020 · 2 comments
Open

Logging System - Categories #46

tjvezina opened this issue Oct 25, 2020 · 2 comments
Assignees
Labels
effort-intense Sleep on it - 16 to 40 hours priority-medium Standard task, plan as you see fit. status-todo Tasks ready to be worked on. type-feature New feature or request
Milestone

Comments

@tjvezina
Copy link
Contributor

tjvezina commented Oct 25, 2020

Depends on: #33
Currently, Log provides simple logging functionality, similar to Console.WriteLine() or Unity's Debug.Log(). In addition, it should be able to assign logs to a category, to visually distinguish them in the console.

Categories are user-defined per project, including name and color, which is prefixed to each log. Categories should be toggleable, to hide any that are irrelevant to current work without deleting them from the project. Logging messages with no category will still be possible.

Category functionality can grow with future features - once the logger includes a runtime debug console, categories could be toggled as the user sees fit to monitor existing systems.

@tjvezina tjvezina added effort-intense Sleep on it - 16 to 40 hours priority-medium Standard task, plan as you see fit. status-todo Tasks ready to be worked on. type-feature New feature or request labels Oct 25, 2020
@tjvezina tjvezina added this to the Anvil v1.0 milestone Oct 25, 2020
@tjvezina tjvezina self-assigned this Oct 25, 2020
@mbaker3
Copy link
Member

mbaker3 commented Oct 26, 2020

I think LogCat's tags on Android is a great example of our aspiration here. I think you captured the intended feature set here.

  • Representing the category in the logged string
  • Making the category available in the metadata of the log message for Log Hanlders to use as they see fit
  • Populating additional metadata along with each log message
    • Calling class
    • Stacktrace?
    • Line Number?
    • Time?
    • Include additional information, defined by the application

(Feel free to split these out into sub tasks if it's too much to tackle at once!)

@mbaker3 mbaker3 mentioned this issue Apr 28, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort-intense Sleep on it - 16 to 40 hours priority-medium Standard task, plan as you see fit. status-todo Tasks ready to be worked on. type-feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants