Log.cs 536 B

123456789101112131415
  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.DLL and don't need a
  4. // different version for every UnityEngine version here)
  5. using System;
  6. namespace Telepathy
  7. {
  8. public static class Log
  9. {
  10. public static Action<string> Info = Console.WriteLine;
  11. public static Action<string> Warning = Console.WriteLine;
  12. public static Action<string> Error = Console.Error.WriteLine;
  13. }
  14. }