Files
Umbraco-CMS/src/Umbraco.Core/Logging/Viewer/ILogViewer.cs
Warren 152ddbd252 Adds LogViewerComponent & registers singleton in DI (3rd party devs will have to disable this component & register their own implementation)
Get some more of the basic WebAPI stubs fleshed out to get some data to start using in the UI layer
2018-08-28 14:48:54 +01:00

30 lines
810 B
C#

using System.Collections.Generic;
namespace Umbraco.Core.Logging.Viewer
{
public interface ILogViewer
{
/// <summary>
/// A count of number of errors
/// By counting Warnings with Exceptions, Errors & Fatal messages
/// </summary>
int GetNumberOfErrors();
/// <summary>
/// Returns a number of the different log level entries
/// </summary>
LogLevelCounts GetLogLevelCounts();
/// <summary>
/// Returns the top common log message templates and their counts
/// </summary>
IEnumerable<CommonLogMessage> GetCommonLogMessages(int numberOfResults = 10);
/// <summary>
/// Returns the collection of logs
/// </summary>
IEnumerable<LogMessage> GetLogs();
}
}