Example #1
0
            public void Warn(string format, Exception ex, params object[] args)
            {
                ILogger logger = ServiceRegistration.Get <ILogger>(false);

                if (logger != null)
                {
                    logger.Warn(format, ex, args);
                }
            }
Example #2
0
            public void Critical(Exception ex)
            {
                ILogger logger = ServiceRegistration.Get <ILogger>(false);

                if (logger != null)
                {
                    logger.Critical(ex);
                }
            }
Example #3
0
            public void Info(string format, params object[] args)
            {
                ILogger logger = ServiceRegistration.Get <ILogger>(false);

                if (logger != null)
                {
                    logger.Info(format, args);
                }
            }
Example #4
0
            public void Error(Exception ex)
            {
                ILogger logger = ServiceRegistration.Get <ILogger>(false);

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