Interface ILogViewerConfig
Represents the configuration options available for customizing the behavior of the log viewer in Umbraco.
Namespace: Umbraco.Cms.Core.Logging.Viewer
Assembly: Umbraco.Infrastructure.dll
Syntax
[Obsolete("Use ILogViewerService instead. Scheduled for removal in Umbraco 15.")]
public interface ILogViewerConfig
Methods
View SourceAddSavedSearch(string, string)
Adds a saved search with the specified name and query.
Declaration
IReadOnlyList<SavedLogSearch> AddSavedSearch(string name, string query)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the saved search. |
| string | query | The query string for the saved search. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<SavedLogSearch> | A read-only list of saved log searches including the newly added one. |
DeleteSavedSearch(string)
Deletes the saved log search with the specified name and returns the updated list of saved searches.
Declaration
IReadOnlyList<SavedLogSearch> DeleteSavedSearch(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the saved search to delete. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<SavedLogSearch> | A read-only list of the remaining saved log searches. |
GetSavedSearches()
Retrieves the collection of saved log searches configured in the log viewer.
Declaration
IReadOnlyList<SavedLogSearch> GetSavedSearches()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<SavedLogSearch> | A read-only list containing the saved log searches. |