Skip to content

Commit

Permalink
Update debug documentation to cover log verbosity
Browse files Browse the repository at this point in the history
Signed-off-by: Alvaro Romero <alromero@redhat.com>
  • Loading branch information
alromeros committed Aug 31, 2023
1 parent b942c70 commit 213f5a4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion doc/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,22 @@ spec:
resources:
requests:
storage: 1Gi
```
```

## Log verbosity

Different levels of verbosity are used in CDI to control the amount of information that is logged. The verbosity level of logs in CDI can be adjusted using a dedicated field in CDIConfig. This feature enables users to control the amount of detail displayed in logs, ranging from minimal to detailed debugging information.

For example:

```yaml
apiVersion: cdi.kubevirt.io/v1beta1
kind: CDI
# ...
spec:
config:
# Overrides the default verbosity level with 4
logVerbosity: 4
```

Changing the verbosity level will automatically restart the CDI components to re-initialize the loggers with the new value.

0 comments on commit 213f5a4

Please sign in to comment.