Class LogsViewModel
The app's session logs, as the terminal client's log window shows them: the sessions, and the entries of the chosen one at a level and above, newest first, filtered by text.
Inheritance
LogsViewModel
Assembly: Uniform.Chat.Avalonia.dll
public sealed class LogsViewModel : ViewModelBase, INotifyPropertyChanged, INotifyPropertyChanging
Constructors
|
Edit this page
View Source
List the logs in directory and show currentPath, this session's log.
Declaration
public LogsViewModel(string directory, string currentPath)
Parameters
Properties
|
Edit this page
View Source
Declaration
[ObservableProperty]
[ExcludeFromCodeCoverage]
public IReadOnlyList<LogFileItem> Files { get; set; }
Property Value
|
Edit this page
View Source
Declaration
[ObservableProperty]
[ExcludeFromCodeCoverage]
public string Filter { get; set; }
Property Value
|
Edit this page
View Source
Declaration
[ObservableProperty]
[ExcludeFromCodeCoverage]
public int LevelIndex { get; set; }
Property Value
|
Edit this page
View Source
Levels to choose from, the least important first.
Declaration
public IReadOnlyList<string> Levels { get; }
Property Value
Gets an IRelayCommand instance wrapping Uniform.Chat.Avalonia.ViewModels.LogsViewModel.Refresh().
Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand RefreshCommand { get; }
Property Value
|
Edit this page
View Source
Declaration
[ObservableProperty]
[ExcludeFromCodeCoverage]
public LogFileItem? Selected { get; set; }
Property Value
|
Edit this page
View Source
Text
Declaration
[ObservableProperty]
[ExcludeFromCodeCoverage]
public string Text { get; set; }
Property Value
Implements