Log.cs 468 B

1234567891011121314
  1. // A simple logger class that uses Console.WriteLine by default.
  2. // Can also do Logger.LogMethod = Debug.Log for Unity etc.
  3. // (this way we don't have to depend on UnityEngine)
  4. using System;
  5. namespace kcp2k
  6. {
  7. public static class Log
  8. {
  9. public static Action<string> Info = Console.WriteLine;
  10. public static Action<string> Warning = Console.WriteLine;
  11. public static Action<string> Error = Console.Error.WriteLine;
  12. }
  13. }