protected override LoggingTypeSource CreateTypeSource(LoggingNamespaceSource parent, Type type) { LoggingTypeSource typeSource = new CircuitBreakingLoggingTypeSource(parent, type); LoggingCircuitBreaker.StatusChanged += (sender, args) => typeSource.Refresh(); return(typeSource); }
/// <summary> /// Initializes a new <see cref="LoupeLoggingTypeSource"/>. /// </summary> /// <param name="parent">The parent <see cref="LoggingNamespaceSource"/>.</param> /// <param name="type">The source <see cref="Type"/>.</param> public LoupeLoggingTypeSource(LoggingNamespaceSource parent, Type type) : base(parent, type.FullName, type) { }
protected override LoggingTypeSource CreateTypeSource(LoggingNamespaceSource parent, Type type) { return(new ServiceStackLoggingTypeSource(parent, type)); }
public CircuitBreakingLoggingTypeSource(LoggingNamespaceSource parent, Type type) : base(parent, type) { }
public ServiceStackLoggingTypeSource(LoggingNamespaceSource parent, Type sourceType) : base(parent, sourceType) { Log = LogManager.GetLogger(sourceType); }
protected override LoggingTypeSource CreateTypeSourceBySourceName(LoggingNamespaceSource parent, string sourceName) { return(new ServiceStackLoggingTypeSource(parent, sourceName, null)); }