ILogSource.cs 446 B

1234567891011121314151617181920
  1. using System;
  2. namespace BepInEx.Logging
  3. {
  4. /// <summary>
  5. /// Log source that can output log messages.
  6. /// </summary>
  7. public interface ILogSource : IDisposable
  8. {
  9. /// <summary>
  10. /// Name of the log source.
  11. /// </summary>
  12. string SourceName { get; }
  13. /// <summary>
  14. /// Event that sends the log message. Call <see cref="EventHandler.Invoke"/> to send a log message.
  15. /// </summary>
  16. event EventHandler<LogEventArgs> LogEvent;
  17. }
  18. }