Avalonia solo in codiceEnglish

API › RAVAL

RLogEntry class

Il riferimento e' in inglese: viene dai commenti del sorgente di RAVAL, che dalla 2.0 ha nomi e commenti in inglese.

public sealed class RLogEntry

One line of the log.

Costruttori

RLogEntry(RLogLevel level, string text, Color? color = null)

A line written now by the calling thread, with its own color if given.

Proprietà

long Number { get; }

The progressive number of the line in this run (1, 2, 3...): who has seen a line can skip it.

DateTime Time { get; }

When it was written (local time).

RLogLevel Level { get; }

How important it is.

int Thread { get; }

The managed id of the thread that wrote it.

string Text { get; }

The text (with the exception, if there was one).

Color? Color { get; }

The color chosen for the text (null: the color of the level).

Color? TextColor { get; }

The color the text is shown in: its own, or that of the level (null for Info: the normal ink).

Metodi

static Color LevelColor(RLogLevel level)

The color of a level, readable on a white and on a dark background: red errors, orange warnings, blue info, grey debug and trace.

static string Tag(RLogLevel level)

The three letters of the level: ERR, WRN, INF, DBG, TRC.

string ToString()

«2026-11-06 15:04:05.123 INF [1] text», as in the file.