This project is read-only.

WCF Writer

Class names

Writer: NSoft.Log.Writers.Wcf.WcfLogWriter.
Contract: NSoft.Log.Writers.Wcf.ILogManager
Configuration: NSoft.Log.Writers.Wcf.WcfLogWriterSettings.


This writer sends data to remote or local WCF-service.

Available settings:
  • EndpointName - name of the configured WCF-client endpoint. Endpoint contract must be NSoft.Log.Writers.Wcf.ILogManager.

WCF-service contract must be like:

    [ServiceContract(Name = "LogManager")]
    public interface ILogManager
        [OperationContract(Name = "WriteLog", IsOneWay = true)]
        void WriteLog(String channel, String[] data);

        [OperationContract(Name = "WriteLogs", IsOneWay = true)]
        void WriteLogs(List<LogRecord> records);

Configuration samples.

      <add id="1" type="NSoft.Log.Writers.Wcf.WcfLogWriter, NSoft.Log.Writers" configurationType="NSoft.Log.Writers.Wcf.WcfLogWriterSettings, NSoft.Log.Writers">

Last edited Mar 31, 2011 at 9:19 PM by Tesh, version 5