Logger.cs 445 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace BepInEx
  6. {
  7. public static class BepInLogger
  8. {
  9. public delegate void EntryLoggedEventHandler(string entry, bool show = false);
  10. public static event EntryLoggedEventHandler EntryLogged;
  11. public static void Log(string entry, bool show = false)
  12. {
  13. EntryLogged?.Invoke(entry, show);
  14. }
  15. }
  16. }