public void AddXmlLogger(IXmlLogger logger) { lock (_autoFlushSync) { // pause auto flush while adding a new logger _xmlLoggers.Add(logger); } StartAutoFlushThread(); }
/// <summary> /// Initializes the B2BCommunication by specifying a Configuration /// </summary> public B2BCommunicator( IConfiguration configuration, IXmlLogger xmlLogger, IXmlProcessor xmlProcessor, ILogger <B2BCommunicator> logger, ILogger <CoreCommunicator> coreCommunicatorLogger) : base(configuration, xmlLogger, xmlProcessor, coreCommunicatorLogger) { _logger = logger; LocalInstrumentCode = Instrumentation.B2B; }
/// <summary> /// Constructs a new Communication by specifying the Configuration /// </summary> public CoreCommunicator( IConfiguration configuration, IXmlLogger xmlLogger, IXmlProcessor xmlProcessor, ILogger <CoreCommunicator> logger) { LocalConfiguration = configuration; Logger = logger; XmlLogger = xmlLogger; XmlProcessor = xmlProcessor; LocalInstrumentCode = Instrumentation.Core; Logger.LogDebug("communicator initialized with custom configuration"); }
public void RemoveXmlLogger(IXmlLogger logger) { lock (_autoFlushSync) { // pause auto flush while removing a logger _xmlLoggers.Remove(logger); } }
public void RemoveXmlLogger(IXmlLogger logger) { _xmlLoggers.Remove(logger); }
public void AddXmlLogger(IXmlLogger logger) { _xmlLoggers.Add(logger); }