mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
refactor: Tidying ILoggerService interface
This commit is contained in:
parent
07ee6ce586
commit
4a68c0caad
1 changed files with 9 additions and 2 deletions
|
|
@ -21,14 +21,20 @@ namespace ICD.Common.Utils.Services.Logging
|
|||
|
||||
public interface ILoggerService
|
||||
{
|
||||
/// <summary>
|
||||
/// Raised when an item is logged against the logger service.
|
||||
/// </summary>
|
||||
[PublicAPI]
|
||||
event EventHandler<LogItemEventArgs> OnEntryAdded;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when the severity level changes.
|
||||
/// </summary>
|
||||
[PublicAPI]
|
||||
event EventHandler<SeverityEventArgs> OnSeverityLevelChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Gets and sets the severity level.
|
||||
/// Gets and sets the minimum severity threshold for log items to be logged.
|
||||
/// </summary>
|
||||
[PublicAPI]
|
||||
eSeverity SeverityLevel { get; set; }
|
||||
|
|
@ -45,7 +51,8 @@ namespace ICD.Common.Utils.Services.Logging
|
|||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[PublicAPI]
|
||||
KeyValuePair<int, LogItem>[] GetHistory();
|
||||
[NotNull]
|
||||
IEnumerable<KeyValuePair<int, LogItem>> GetHistory();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue