WL#11196: add "note" and "system" loglevel

Affects: Server-8.0   —   Status: Complete


Router currently supports the log-levels:

  • error
  • warning
  • info
  • debug

It's often desirable for a user to limit the amount of logging from an application even when logging on a sensible normal loglevel.

Normally, the currently available loglevels "error" and "warning" produce very little log, while "debug" produces excessive amounts of logging, in this respect.

On the other side, there is a need to log certain messages all the time that aren't errors. E.g. state-changes like:

  • startup
  • shutdown

Background: mysql-server

The mysql-server supports:

  • system
  • error
  • warning
  • note


  • Add new "system" loglevel which is higher than "error"
  • Add new "note" loglevel which is between "info" and "debug"
loglevel note and system MUST be settable through existing loglevel specification mechanisms in Router
loglevel note MUST log only system, error, info and note messages
loglevel system MUST log only system messages


log_level accepts new log-levels: system and note.


To log the new log-message types, two new log-functions are added to the mysql/harness/logging/logging.h header:

  • log_system(...)
  • log_note(...)