public static void WithExceptionLogging()

in src/DeloitteDigital.Atlas/Logging/LogExtensions.cs [15:29]


        public static void WithExceptionLogging(this ILogService log, Action action, object owner = null, bool sinkException = false)
        {
            using (log.WithLogScope(owner))
            {
                try
                {
                    action();
                }
                catch (Exception exception)
                {
                    log.Error("WithExceptionLogging caught exception: ", exception);
                    if (!sinkException) throw;
                }
            }
        }