Este contenido no está disponible en el idioma seleccionado.
Chapter 5. Configuring log settings for Serving and Eventing
You can configure logging for OpenShift Serverless Serving and OpenShift Serverless Eventing using the KnativeServing and KnativeEventing custom resource (CR). The level of logging is determined by the specified loglevel value.
5.1. Supported log levels Copiar enlaceEnlace copiado en el portapapeles!
The following loglevel values are supported:
| Log level | Description |
|---|---|
|
| Fine-grained debugging |
|
| Normal logging |
|
| Unexpected but non-critical errors |
|
| Critical errors; unexpected during normal operation |
|
| In debug mode, trigger a panic (crash) |
Using the debug level for production might negatively affect performance.
5.2. Configuring log settings Copiar enlaceEnlace copiado en el portapapeles!
You can configure logging for Serving and Eventing in the KnativeServing custom resource (CR) and KnativeEventing CR.
Procedure
Configure the log settings for Serving and Eventing by setting or modifying the
loglevelvalue in theKnativeServingandKnativeEventingCR respectively. Here are two example configurations with all possible logging options set to levelinfo:KnativeServing CR
Copy to Clipboard Copied! Toggle word wrap Toggle overflow KnativeEventing CR
Copy to Clipboard Copied! Toggle word wrap Toggle overflow