mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 21:35:45 +00:00
20 lines
468 B
C#
20 lines
468 B
C#
using System;
|
|
|
|
namespace BepInEx.Logging;
|
|
|
|
/// <summary>
|
|
/// Log source that can output log messages.
|
|
/// </summary>
|
|
public interface ILogSource : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Name of the log source.
|
|
/// </summary>
|
|
string SourceName { get; }
|
|
|
|
/// <summary>
|
|
/// Event that sends the log message. Call <see cref="EventHandler.Invoke" /> to send a log message.
|
|
/// </summary>
|
|
event EventHandler<LogEventArgs> LogEvent;
|
|
}
|