Skip to content
Snippets Groups Projects
Commit c513ac2e authored by John Zulauf's avatar John Zulauf
Browse files

layers: Strawman/dartboard new message logger

TODO: Rebase this on top of MikeS recent changes.

For your review/critique is a quick and dirty working protoptype of a
new message logger for the validation layers.  The goals were:

* No repetition of known data (i.e. types/VUIDs)
* No casts when constructing messages.
* Flexible formatting options.
* No formatting if message will not be emitted.
* A starting place for more brainstorming
* Quick and dirty

Missing:
    * even better automatic casting/overload.  (given further code
      generation)
    * detailed interface design (naming, and method vs. operator)

Messy:
    * Use of MACRO for msg generation (to compress flags and __LINE__)
    * add_x and add_h for hex and handle handling...
    * transitions between built-in type support (<< operations) and
      .add* method operations
    * Using << style formatting. (maybe not familiar to maintainers)

Pretty Cool:
    * Automatic object type detection
    * No-op output functions if messages are not enabled
    * Built-in sprintf conversions
    * Automatic update of "skip", and post to debug_log_msg in
      destructor
    * Automatic appending of validation_error_message (when avail)
    * No more PRI ...

Change-Id: I5ea8f5e95c9d765ab846038d6ceab60fc111d3d4
parent d92ce371
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment