Skip to content

Rearrange log flags for more utility #295

Closed
@terrillmoore

Description

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.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions