Example #1
0
        private ErrorLog(Vertica.Integration.Infrastructure.Logging.Severity severity, ITarget target)
        {
            this.Severity = severity;
            object service = target;

            if (service == null)
            {
                service = Vertica.Integration.Infrastructure.Logging.Target.Service;
            }
            this.Target       = ((ITarget)service).Name;
            this.MachineName  = Environment.MachineName;
            this.IdentityName = WindowsUtils.GetIdentityName();
            this.CommandLine  = Environment.CommandLine.MaxLength(4000);
            this.TimeStamp    = Time.UtcNow;
        }
Example #2
0
 public ErrorLog(Vertica.Integration.Infrastructure.Logging.Severity severity, string message, ITarget target) : this(severity, target)
 {
     this.Message          = message.MaxLength(4000);
     this.FormattedMessage = message;
 }