# The &kwatchgnupg; Handbook

Marc
Mutz

    &Marc.Mutz.mail;

Steffen
Hansen
Developer

    &Steffen.Hansen.mail;

David
Faure

    &David.Faure.mail;

Developer
&GPLNotice;
2024-10-24
(Gear 24.12)

&kwatchgnupg; is a simple &gnupg; log viewer.

KDE
gpg
gpgsm
GnuPG
Log viewer

## Introduction

&kwatchgnupg; is simple log viewer for &gnupg;. It works as a &GUI; wrapper around the command line tool &watchgnupg;, which listens on a socket for log lines from the &gnupg; backend applications. See `info watchgnupg` for more information about &watchgnupg;.

&kwatchgnupg; can be started from the Tools GnuPG Log Viewer menu of both &kleopatra; and &kmail;, as well as from the command line. The &kwatchgnupg; executable is named `kwatchgnupg`.

### Main Functions

#### Viewing the Log

&kwatchgnupg;'s main function is of course to present the &gnupg; debugging and logging information to the user. The main window is divided into a large text viewing area, where &gnupg; messages will appear as they are generated, a toolbar giving quick access to the most often needed functions, as well as the obligatory menu bar.

Each line in the text view is normally prefixed with a FD identifier and a time stamp in ISO format. The FD identifier can be used to distinguish between output from different &gnupg; instances running in parallel. Following the timestamp is the name of the component that is the source of the log line, together with some internal information in sqare brackets, followed by the original debugging or log output as printed by the component.

By default, the number of log lines that are kept in the history is limited to 10000 lines. You can configure the history size in the configuration dialog.

#### Saving the Contents of the Log Window to a File

Sometimes it might be convenient to save the current log window contents to a file, &eg; to mail it to the developers as part of a bug report. There are two ways to achieve this in &kwatchgnupg;:

First, you can choose File Save As... (or the corresponding toolbar icon) to save the complete log window contents to a file. You will be prompted to specify a save file location.

Second, you can select the interesting lines with normal left-mouse selection and paste them into a word processor or mail user agent, just like any other text. You should make sure, though, that lines are not broken, since this reduces the readability of the log.

#### Clearing the Log Window

For convenience, you can instruct &kwatchgnupg; to clear the log window using File Clear History (or the corresponding toolbar icon).

Use this prior to starting the crypto operation that you want to monitor to get only the output from that operation. You can then save the log using File Save As... as described above.

Clearing the log discards any previous log window contents. If you are unsure about whether you'll need the current contents afterwards, you should save them to a file (see above) before clearing.

## Configuring &kwatchgnupg;

To configure &kwatchgnupg;, select Settings Configure &kwatchgnupg;, or the corresponding toolbar icon.

### Settings Dialog

#### Log Window Settings

Here, you can configure the size of the history buffer, &ie; the number of log lines that is kept. If more lines have been emitted by the &gnupg; backend since the last clearance of the history, then the oldest lines are discarded until there is enough room for the new lines again.

You can disable the history size limit by clicking Set Unlimited. Note, however, that &kwatchgnupg;'s memory consumption will grow with the number of lines it currently displays. If you use an unlimited history size, then make sure to run &kwatchgnupg; only for short operations, or regularly clear the history manually.

### &gnupg; Logging Settings

Use the settings dialog of &kleopatra; for configuring logging of the components of the &gnupg; System. For each component for which you want to see logging choose a debugging level and enter `socket://` as file the logs should be written to.

## Credits and License

&kwatchgnupg; copyright 2004 Klarälvdalens Datakonsult AB

Documentation copyright 2004 Klarälvdalens Datakonsult AB

### Contributors

- &Steffen.Hansen; hansen@kde.org

- &Marc.Mutz; &Marc.Mutz.mail;

- &David.Faure; &David.Faure.mail;

&underFDL; &underGPL;

&documentation.index;