ILogListener.cs 568 B

1234567891011121314151617
  1. using System;
  2. namespace BepInEx.Logging
  3. {
  4. /// <summary>
  5. /// A generic log listener that receives log events and can route them to some output (e.g. file, console, socket).
  6. /// </summary>
  7. public interface ILogListener : IDisposable
  8. {
  9. /// <summary>
  10. /// Handle an incoming log event.
  11. /// </summary>
  12. /// <param name="sender">Log source that sent the event. Don't use; instead use <see cref="LogEventArgs.Source"/></param>
  13. /// <param name="eventArgs">Information about the log message.</param>
  14. void LogEvent(object sender, LogEventArgs eventArgs);
  15. }
  16. }