The Logs window

File › Logs opens the messages of this run of Virtualbricks: what it says as it opens a project or starts a brick, what the bricks and the events say, and what their programs print. When something goes wrong, look here first: the messages before an error often say why it happened.

An error also opens a window of its own as it happens; the Logs window keeps it, with what came before it.

The Logs window with level:warning in its filter. Under the line of the day, Friday 02 August 2024, two messages of tap1: at 10:00:02, what sudo wrote on its standard error, 2> sudo: a password is required, with the symbol of a terminal; at 10:00:03, in red, the error Process terminated. process ended with exit code 1. The status bar says 2 of 9 messages, 1 error, 0 warnings, 1 line of program output, and Following the newest.
The Logs window, filtered with level:warning

Reading a message

Each message is a line:

The time

As 10:00:02. A line with the date starts each day, and a time the same as the one above is fainter. Point at the time for the date, and the time to the millisecond.

Where it comes from

A brick or an event, in blue, after the picture of its kind; or else the part of Virtualbricks that speaks, in grey, as Project, Settings or Main window. A name longer than 14 characters ends with "…". Point at it for the whole name, the kind of the brick, the module of Virtualbricks that logged the message and the process id of the program.

The level

A symbol: information, a warning, an error, or a terminal for what a program printed. Point at it for the level in words.

The message

Its first line, orange for a warning, red for an error, bold red for a critical one; then what it folds.

When a brick starts, its message says the command it runs, as Starting: /usr/bin/vde_switch -n 32 -s …: run it in a terminal to see what the program says. Select the text with the mouse, and copy it with Ctrl+C.

Folded lines

A message of more than one line shows the first, then ▸ 2 more lines: click it to show the others under it, and again to hide them. An error inside Virtualbricks may have ▸ traceback, 3 calls too, where in the code it happened, which a bug report needs. Expand all and Collapse all, in the menu of the window, open and close them all.

What the programs print

The output of a program shows on a grey band, with 2> before what it writes on its standard error. It shows as it would in a terminal: a line that the program writes again, as the monitor of QEMU does with each command, shows as it ends up, and the colours are dropped. The lines that come together are one message, the first line in view and the others folded. A line the program doesn't end, as a prompt, shows with the next one, or when the program stops.

The filter

The field at the top keeps the messages that match what you type in it: Ctrl+F goes there, and Esc empties it. A message must match all the words, and upper or lower case doesn't matter:

level:warning

The warnings and what is worse: the errors, and what the programs wrote on their standard error, which often explains them. Also level:error, level:critical and level:info, and warn, err and crit for short.

source:tap1,vm1

The messages of those bricks or events, or of a part of Virtualbricks, as source:project. A kind of brick keeps the messages of every brick of the kind: source:qemu those of the virtual machines; the others are switch, switchwrapper, router, wire, netemu, tunnellisten, tunnelconnect, tap, capture and event.

any other word

The messages that have it, in any of their lines, folded too, or in where they come from.

The status bar then says how many of the messages show, as 2 of 9 messages.

Following the newest

Following, at the top, keeps the newest message in view as the messages come. Scroll up to read, and it lets go: the status bar says Paused. Scroll back to the end, or click Following, and it follows again. Opening the folded lines of an older message pauses it too.

The status bar counts the messages, then the errors, the warnings and the lines that the programs printed: of all the messages, whatever the filter.

What the window keeps

Saving and reporting

Save…, in the menu, writes all the messages to a file, whatever the filter, with their folded lines and tracebacks. Each starts with its date and time, the module that logged it and its level, as 2024-08-02T10:00:03+0200 [virtualbricks.bricks.Process#error].

Report a bug… opens a new email in your mail program, with the version of Virtualbricks in it and the messages attached: write the address and what went wrong. Where to report a problem is in Reporting a problem.

See also