-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add UDS API for post-launch log level tuning. #54
Comments
Paging is planned to be supported, even though I doubt the number of pages will exceed one. GetLogger is a simplified API for when only one logger is to be listed. It defaults to the ListLoggers behavior with an optional by_name and with_subloggers hard-wired to false. Deciding which fields are to be returned is controlled with the LoggerMask type. LoggerMask.current_level will ensure that the logger's current log level is returned. LoggerMask.default_level will ensure that the logger's default (configured at launch time) level is returned. If no logging levels are desired, setting both to false will only return logger names. The defaults for these being unset is to assume the values are to be returned. The defaults for not including a LoggerMask is to return both the current level and the default level.
The count API is for optimized counting, avoiding the retrieval of all loggers for client-side counting. As a root logger always exists, the minimum count should be 1. No assurances exist that the count is stable, for systems that require storage of all items, use ListLoggers to obtain all items and store off the count of the returned logger list. Do not call LoggerCount to allocate the size, as the ListLoggers can return a different count should the system initialize a new logger between the two API calls. |
see spiffe/spire#4785
This commit introduces:
New Data Types
Logger : a representation of a logger
in the application's config file
LoggerMask : which Logger fields must be populated on a
query response
Single Logger Operations:
GetLogger : Fetches the log level of the logger
(optional, unset is root logger)
(optional, unset is all fields)
AdjustLogger : Changes the log level of the logger
(optional, unset is the root logger)
(required)
Plural Logger Operations:
CountLoggers : Returns the number of loggers
ListLoggers : Show Logger details for a number of loggers
(optional, unset is the root logger with all sub-loggers)
of the returned loggers
are to be included in the response
the logger
configured in the process config
file
The text was updated successfully, but these errors were encountered: