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

Rearrange log flags for more utility #295

Closed
terrillmoore opened this issue May 4, 2021 · 0 comments
Closed

Rearrange log flags for more utility #295

terrillmoore opened this issue May 4, 2021 · 0 comments
Assignees

Comments

@terrillmoore
Copy link
Member

The flags in McciCatena;:cLog are not as useful as they should be; kTrace ends up getting used a lot when something like kVerbose would make more sense.

This fix would:

  • separate kTrace from other flags, because it's a debugging flag, not an operating flag (in typical linux terms, -D rather than -v).
  • group top 16 bits for use as varieties of kTrace.
  • Order the logging bits Bug, Error, Warning, Info, Verbose
  • Label bits 5 through 7 as "reserved for future library use"
  • Add 8 User "logging" bits (bits 8 through 15)
  • Make kTrace a synonym for kTrace0, and assign bit 16..23 as library trace bits
  • Add 8 user "tracing" bits (bits 24 through 31).

While at it, add overload operators for |, at least, so log masks can be sanely combined.

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