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

Narrations should have a level like with logging #4

Open
haxsaw opened this issue Feb 8, 2021 · 0 comments
Open

Narrations should have a level like with logging #4

haxsaw opened this issue Feb 8, 2021 · 0 comments
Assignees

Comments

@haxsaw
Copy link
Owner

haxsaw commented Feb 8, 2021

When setting a narration on a function, an optional level should be allowed that determines whether or not to capture the narration fragment for that function (or method) based on the currently selected narration level option. The available levels should follow the names and semantics of the levels in the logging module, an custom levels should be available as well.

All narration should have a default level of 'INFO', which is also the level that each narration thread should default to. So in that case, narrations at the INFO level or higher would have fragments captured, and narrations with lower levels are skipped.

There should be every attempt to make skipped narrations provide a speed bonus in order to tune how narration impacts a program.

@haxsaw haxsaw self-assigned this Feb 8, 2021
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

1 participant