예제 #1
0
            public void Error(Exception ex)
            {
                ILogger logger = ServiceRegistration.Get <ILogger>(false);

                if (logger != null)
                {
                    logger.Error(ex);
                }
            }
예제 #2
0
            public void Error(string format, Exception ex, params object[] args)
            {
                ILogger logger = ServiceRegistration.Get <ILogger>(false);

                if (logger != null)
                {
                    logger.Error(format, ex, args);
                }
            }