Get some more of the basic WebAPI stubs fleshed out to get some data to start using in the UI layer
30 lines
810 B
C#
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();
|
|
|
|
}
|
|
}
|