// Module included in the following assemblies:
//
// * virt/support/virt-troubleshooting.adoc

:_mod-docs-content-type: PROCEDURE
[id="virt-configuring-pod-log-verbosity_{context}"]
= Configuring {VirtProductName} pod log verbosity

[role="_abstract"]
To gather more detailed diagnostic information for troubleshooting, you can configure the verbosity level of {VirtProductName} pod logs. Edit the `HyperConverged` custom resource (CR) to configure this setting.

.Prerequisites

* You have installed the {oc-first}.

.Procedure

. To set log verbosity for specific components, open the `HyperConverged` CR in your default text editor by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc edit {HCOCliKind} kubevirt-hyperconverged -n {CNVNamespace}
----

. Set the log level for one or more components by editing the `spec.deployment.logVerbosityConfig` stanza. For example:
+
[source,yaml]
----
apiVersion: hco.kubevirt.io/v1
kind: HyperConverged
metadata:
  name: kubevirt-hyperconverged
spec:
  deployment:
    logVerbosityConfig:
      kubevirt:
        virtAPI: 5
        virtController: 4
        virtHandler: 3
        virtLauncher: 2
        virtOperator: 6
----
+
The log verbosity value must be an integer in the range `1–9`, where a higher number indicates a more detailed log. In this example, the `virtAPI` component logs are exposed if their priority level is `5` or higher.

. Apply your changes by saving and exiting the editor.
