1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/external-secrets-enable-operand-log-level.adoc
2025-11-26 19:43:48 +00:00

46 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
//
// * security/external_secrets_operator/external-secrets-log-levels.adoc
:_mod-docs-content-type: PROCEDURE
[id="external-secrets-enable-operand-log-level_{context}"]
= Setting a log level for the {external-secrets-operator} operand
[role="_abstract"]
You can set a log level for the {external-secrets-operator} to determine the verbosity of log messages.
.Prerequisites
* You have access to the cluster with `cluster-admin` privileges.
* You have created the `ExternalSecretsConfig` custom resource.
.Procedure
. Edit the `ExternalSecretsConfig` CR by running the following command:
+
[source,terminal]
----
$ oc edit externalsecretsconfigs.operator.openshift.io cluster
----
. Set the log level value by editing the `spec.appConfig.logLevel` section:
+
[source,yaml]
----
apiVersion: operator.openshift.io/v1alpha1
kind: ExternalSecretsConfig
...
spec:
appConfig:
logLevel: <log_level> <1>
----
+
<1> Supports the value range of 1-5. The log level gets mapped to the following operand support levels:
* 1 - warnings
* 2 - error logs
* 3 - info logs
* 4 and 5 - debug logs
. Save your changes and exit the editor.