WL#11196: add "note" and "system" loglevel
Affects: Server-8.0
—
Status: Complete
Motivation
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
Goal
- Add new "system" loglevel which is higher than "error"
- Add new "note" loglevel which is between "info" and "debug"
- FR1
-
loglevel
note
andsystem
MUST be settable through existingloglevel
specification mechanisms in Router - FR2
-
loglevel
note
MUST log onlysystem
,error
,info
andnote
messages - FR3
-
loglevel
system
MUST log onlysystem
messages
Configuration
log_level
accepts new log-levels: system
and note
.
API
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(...)
Copyright (c) 2000, 2024, Oracle Corporation and/or its affiliates. All rights reserved.