You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by "craigcondit (via GitHub)" <gi...@apache.org> on 2023/06/30 16:01:21 UTC

[GitHub] [yunikorn-site] craigcondit commented on a diff in pull request #322: [YUNIKORN-1824] add log.{subsystem}.level

craigcondit commented on code in PR #322:
URL: https://github.com/apache/yunikorn-site/pull/322#discussion_r1248028257


##########
docs/user_guide/service_config.md:
##########
@@ -704,6 +704,89 @@ Example:
 ```yaml
 log.level: "-1"
 ```
+
+#### log.{subsystem}.level
+Sets the verbosity that YuniKorn subsystem will log at.
+
+Yunikorn allows fine-grained logging configuration in a hierarchical manner. For example, 
+setting an entry for `log.core.level` will configure all loggers that start with `core.` 
+(including `core.scheduler`, etc.) unless a more specific configuration is present. 
+Each subsystem has its log level. The `{subsystem}` values are:
+
+- admission

Review Comment:
   Given the length of this list, maybe it makes sense to format it as a footnote. This will keep the full list out of the main configuration entry. We can still provide examples.



##########
docs/user_guide/service_config.md:
##########
@@ -704,6 +704,89 @@ Example:
 ```yaml
 log.level: "-1"
 ```
+
+#### log.{subsystem}.level
+Sets the verbosity that YuniKorn subsystem will log at.
+
+Yunikorn allows fine-grained logging configuration in a hierarchical manner. For example, 
+setting an entry for `log.core.level` will configure all loggers that start with `core.` 
+(including `core.scheduler`, etc.) unless a more specific configuration is present. 
+Each subsystem has its log level. The `{subsystem}` values are:
+
+- admission
+- admission.client
+- admission.conf
+- admission.utils
+- admission.webhook
+- core
+- core.config
+- core.entrypoint
+- core.events
+- core.metrics
+- core.opentracing
+- core.resources
+- core.rest
+- core.rmproxy
+- core.rpc
+- core.scheduler
+- core.scheduler.allocation
+- core.scheduler.application
+- core.scheduler.application.usage
+- core.scheduler.context
+- core.scheduler.fsm
+- core.scheduler.health
+- core.scheduler.node
+- core.scheduler.partition
+- core.scheduler.preemption
+- core.scheduler.queue
+- core.scheduler.reservation
+- core.scheduler.ugm
+- core.security
+- core.utils
+- deprecation
+- kubernetes
+- shim
+- shim.appmgmt
+- shim.appmgmt.general
+- shim.appmgmt.sparkoperator
+- shim.cache.application
+- shim.cache.external
+- shim.cache.node
+- shim.cache.placeholder
+- shim.cache.task
+- shim.client
+- shim.config
+- shim.context
+- shim.dispatcher
+- shim.framework
+- shim.fsm
+- shim.predicates
+- shim.resources
+- shim.rmcallback
+- shim.scheduler
+- shim.scheduler.plugin
+- shim.utils
+
+A change to this setting will be picked up without a restart of YuniKorn. The available
+values are:
+
+ - `-1`: Debug
+ - `0`: Info
+ - `1`: Warn
+ - `2`: Error
+ - `3`: DPanic
+ - `4`: Panic
+ - `5`: Fatal
+
+Default: `0` (Info)
+
+Example:
+```yaml
+log.admission.level: "-1"

Review Comment:
   Let's use the textual values instead of numeric as both are supported, but the textual ones are much easier to read:
   
   ```
   log.level: INFO
   log.admission.level: DEBUG
   log.core.config.level: INFO
   log.shim.appmgmt.sparkoperator.level: ERROR
   ```



##########
docs/user_guide/service_config.md:
##########
@@ -704,6 +704,89 @@ Example:
 ```yaml
 log.level: "-1"

Review Comment:
   We should update the description of `log.level` to indicate that textual values are now allowed (as are the numeric values) but update the examples to use the textual values since they are easier to read.
   
   We should also update the description from "Sets the verbosity that YuniKorn will log at." to "Sets the *default* verbosity that YuniKorn will log at."



##########
docs/user_guide/service_config.md:
##########
@@ -704,6 +704,89 @@ Example:
 ```yaml
 log.level: "-1"
 ```
+
+#### log.{subsystem}.level
+Sets the verbosity that YuniKorn subsystem will log at.
+
+Yunikorn allows fine-grained logging configuration in a hierarchical manner. For example, 
+setting an entry for `log.core.level` will configure all loggers that start with `core.` 
+(including `core.scheduler`, etc.) unless a more specific configuration is present. 
+Each subsystem has its log level. The `{subsystem}` values are:
+
+- admission
+- admission.client
+- admission.conf
+- admission.utils
+- admission.webhook
+- core
+- core.config
+- core.entrypoint
+- core.events
+- core.metrics
+- core.opentracing
+- core.resources
+- core.rest
+- core.rmproxy
+- core.rpc
+- core.scheduler
+- core.scheduler.allocation
+- core.scheduler.application
+- core.scheduler.application.usage
+- core.scheduler.context
+- core.scheduler.fsm
+- core.scheduler.health
+- core.scheduler.node
+- core.scheduler.partition
+- core.scheduler.preemption
+- core.scheduler.queue
+- core.scheduler.reservation
+- core.scheduler.ugm
+- core.security
+- core.utils
+- deprecation
+- kubernetes
+- shim
+- shim.appmgmt
+- shim.appmgmt.general
+- shim.appmgmt.sparkoperator
+- shim.cache.application
+- shim.cache.external
+- shim.cache.node
+- shim.cache.placeholder
+- shim.cache.task
+- shim.client
+- shim.config
+- shim.context
+- shim.dispatcher
+- shim.framework
+- shim.fsm
+- shim.predicates
+- shim.resources
+- shim.rmcallback
+- shim.scheduler
+- shim.scheduler.plugin
+- shim.utils
+
+A change to this setting will be picked up without a restart of YuniKorn. The available
+values are:
+
+ - `-1`: Debug
+ - `0`: Info
+ - `1`: Warn
+ - `2`: Error
+ - `3`: DPanic
+ - `4`: Panic
+ - `5`: Fatal
+
+Default: `0` (Info)

Review Comment:
   We should also point out that the textual entries are also allowed.



##########
docs/user_guide/service_config.md:
##########
@@ -704,6 +704,89 @@ Example:
 ```yaml
 log.level: "-1"
 ```
+
+#### log.{subsystem}.level
+Sets the verbosity that YuniKorn subsystem will log at.
+
+Yunikorn allows fine-grained logging configuration in a hierarchical manner. For example, 
+setting an entry for `log.core.level` will configure all loggers that start with `core.` 
+(including `core.scheduler`, etc.) unless a more specific configuration is present. 
+Each subsystem has its log level. The `{subsystem}` values are:
+
+- admission
+- admission.client
+- admission.conf
+- admission.utils
+- admission.webhook
+- core
+- core.config
+- core.entrypoint
+- core.events
+- core.metrics
+- core.opentracing
+- core.resources
+- core.rest
+- core.rmproxy
+- core.rpc
+- core.scheduler
+- core.scheduler.allocation
+- core.scheduler.application
+- core.scheduler.application.usage
+- core.scheduler.context
+- core.scheduler.fsm
+- core.scheduler.health
+- core.scheduler.node
+- core.scheduler.partition
+- core.scheduler.preemption
+- core.scheduler.queue
+- core.scheduler.reservation
+- core.scheduler.ugm
+- core.security
+- core.utils
+- deprecation
+- kubernetes
+- shim
+- shim.appmgmt
+- shim.appmgmt.general
+- shim.appmgmt.sparkoperator
+- shim.cache.application
+- shim.cache.external
+- shim.cache.node
+- shim.cache.placeholder
+- shim.cache.task
+- shim.client
+- shim.config
+- shim.context
+- shim.dispatcher
+- shim.framework
+- shim.fsm
+- shim.predicates
+- shim.resources
+- shim.rmcallback
+- shim.scheduler
+- shim.scheduler.plugin
+- shim.utils
+
+A change to this setting will be picked up without a restart of YuniKorn. The available
+values are:
+
+ - `-1`: Debug
+ - `0`: Info
+ - `1`: Warn
+ - `2`: Error
+ - `3`: DPanic
+ - `4`: Panic
+ - `5`: Fatal
+
+Default: `0` (Info)
+
+Example:
+```yaml

Review Comment:
   Let's show `log.level` in the example as well, and also describe that it acts as the default log level for all loggers.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org