RaspberryIO_26/Swan.Lite/Logging/ILogger.cs

25 lines
590 B
C#
Raw Permalink Normal View History

2019-12-08 19:54:52 +01:00
using System;
namespace Swan.Logging {
/// <summary>
/// Interface for a logger implementation.
/// </summary>
public interface ILogger : IDisposable {
2019-12-04 18:57:18 +01:00
/// <summary>
2019-12-08 19:54:52 +01:00
/// Gets the log level.
2019-12-04 18:57:18 +01:00
/// </summary>
2019-12-08 19:54:52 +01:00
/// <value>
/// The log level.
/// </value>
LogLevel LogLevel {
get;
}
/// <summary>
/// Logs the specified log event.
/// </summary>
/// <param name="logEvent">The <see cref="LogMessageReceivedEventArgs"/> instance containing the event data.</param>
void Log(LogMessageReceivedEventArgs logEvent);
}
2019-12-04 18:57:18 +01:00
}