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

Introduce Verbose Logging #112

Open
mbaker3 opened this issue Apr 13, 2023 · 0 comments
Open

Introduce Verbose Logging #112

mbaker3 opened this issue Apr 13, 2023 · 0 comments
Labels
effort-medium Standard - 2 to 4 hours priority-medium Standard task, plan as you see fit. status-backlog Tasks captured but not yet planned. type-feature New feature or request

Comments

@mbaker3
Copy link
Member

mbaker3 commented Apr 13, 2023

Introduce a method of emitting logs only when an ANVIL_LOG_VERBOSE directive is present.

This should still allow for Error, Warning, Debug levels within the verbose log and should probably take the form of a VerboseLogger object that wraps Logger.

Keep in Mind

When ANVIL_LOG_VERBOSE is not present

  • Verbose logger should occupy no or minimal memory
  • Verbose logger message emitting calls (Debug, Warning, etc...) should not execute. Preventing the message string from being allocated (use ConditionalAttribute)

Ideas

  • Place a verbose logger instance inside of Logger so usage would be something like Logger.Verbose.Warning()
  • Have verbose logger live alongside the Logger getter in AbstractAnvilBase
@mbaker3 mbaker3 added effort-medium Standard - 2 to 4 hours priority-medium Standard task, plan as you see fit. status-backlog Tasks captured but not yet planned. type-feature New feature or request labels Apr 13, 2023
mbaker3 added a commit to decline-cookies/anvil-unity-dots that referenced this issue Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort-medium Standard - 2 to 4 hours priority-medium Standard task, plan as you see fit. status-backlog Tasks captured but not yet planned. type-feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant