public static void LogAndThrow([NotNull] DomainLogger logger, [NotNull] Exception e, [NotNull] string tag, [NotNull] string message, bool fatal) { if (fatal) { logger.E(tag, message, e); } else { logger.W(tag, message, e); } throw e; }
public static void AssertAndLog([NotNull] DomainLogger logger, bool assertion, [NotNull] string tag, [NotNull] string message) { Debug.Assert(assertion, message); logger.W(tag, message); }