Example #1
0
        public override void ActivateOptions()
        {
            base.ActivateOptions();

            //whether we should add full exception to journal -> false = we do not add them / true = add rendered exceptions
            IgnoresException = true;

            InfoColor  = InfoColor.IsNullOrEmpty() ? "\x1b[36m" : "\x1b[" + InfoColor;
            WarnColor  = WarnColor.IsNullOrEmpty() ? "\x1b[33m" : "\x1b[" + WarnColor;
            ErrorColor = ErrorColor.IsNullOrEmpty() ? "\x1b[31m" : "\x1b[" + ErrorColor;

            try
            {
                LoggerPrefix = CloudConfigurationManager.GetSetting("LoggerNamePrefix");
            }
            catch
            {
                LoggerPrefix = null;
            }

            if (string.IsNullOrWhiteSpace(LoggerPrefix))
            {
                LoggerPrefix = null;
            }
        }
 public override void ActivateOptions()
 {
     IgnoresException = false;
     InfoColor        = InfoColor.IsNullOrEmpty() ? "\x1b[36m" : "\x1b[" + InfoColor;
     WarnColor        = WarnColor.IsNullOrEmpty() ? "\x1b[33m" : "\x1b[" + WarnColor;
     ErrorColor       = ErrorColor.IsNullOrEmpty() ? "\x1b[31m" : "\x1b[" + ErrorColor;
 }