protected MessageBuilder(IVentLog logger, VentMessage msg) { msg.Source = logger.Configuration.Source; Logger = logger; InnerMessage = msg; }
public ExceptionBuilder(IVentLog logger, VentMessage msg) : base(logger, msg) { if (logger.Configuration.EnvironmentProvider != null) { Assign(data => data.Environment = logger.Configuration.EnvironmentProvider()); } }
protected EventBaseBuilder(IVentLog logger, VentMessage msg) : base(logger, msg) { if (logger.Configuration.MachineNameProvider != null) { MachineName(logger.Configuration.MachineNameProvider()); } if (logger.Configuration.UserNameProvider != null) { UserName(logger.Configuration.UserNameProvider()); } if (logger.Configuration.VersionProvider != null) { Version(logger.Configuration.VersionProvider()); } }
public MetricMessageFactory(IVentLog logger) { _logger = logger; }
public static EventMessageFactory Events(this IVentLog logger) { return(new EventMessageFactory(logger)); }
public static MetricMessageFactory Metrics(this IVentLog logger) { return(new MetricMessageFactory(logger)); }
public static ExceptionBuilder Exception(this IVentLog logger, Exception ex) { var factory = new ExceptionMessageFactory(logger); return(factory.CreateException(ex)); }
public CounterMetricBuilder(IVentLog logger, VentMessage msg) : base(logger, msg) { }
public EventMessageFactory(IVentLog logger) { _logger = logger; }
public ExceptionMessageFactory(IVentLog logger) { _logger = logger; }
public GaugeMetricBuilder(IVentLog logger, VentMessage msg) : base(logger, msg) { }
public EventBuilder(IVentLog logger, VentMessage msg) : base(logger, msg) { }