LogCreator.cs 469 B

123456789101112131415161718
  1. namespace XGame.Framework.Logger
  2. {
  3. public static class LogCreator
  4. {
  5. public static ILogger Create()
  6. {
  7. ILogColors colors = null;
  8. WriterRepository repository = null;
  9. #if UNITY_EDITOR
  10. colors = new UnityLogColors();
  11. #elif UNITY_ANDROID || UNITY_IOS
  12. repository = new WriterRepository();
  13. #endif
  14. var logger = new LoggerImpl(colors, repository);
  15. return logger;
  16. }
  17. }
  18. }