예제 #1
0
        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;
        }
예제 #2
0
 public static void AssertAndLog([NotNull] DomainLogger logger, bool assertion, [NotNull] string tag, [NotNull] string message)
 {
     Debug.Assert(assertion, message);
     logger.W(tag, message);
 }