NetSendAppender ClassApache log4net™ SDK Documentation
Logs entries by sending network messages using the NetMessageBufferSend(String, String, String, String, Int32) native function.
Inheritance Hierarchy

OnlineSystem Object
  log4net.Appender AppenderSkeleton
    log4net.Appender NetSendAppender

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public class NetSendAppender : AppenderSkeleton
Remarks

You can send messages only to names that are active on the network. If you send the message to a user name, that user must be logged on and running the Messenger service to receive the message.

The receiver will get a top most window displaying the messages one at a time, therefore this appender should not be used to deliver a high volume of messages.

The following table lists some possible uses for this appender :

ActionProperty Value(s)
Send a message to a user account on the local machineServer = <name of the local machine>

Recipient = <user name>

Send a message to a user account on a remote machineServer = <name of the remote machine>

Recipient = <user name>

Send a message to a domain user accountServer = <name of a domain controller | uninitialized>

Recipient = <user name>

Send a message to all the names in a workgroup or domainRecipient = <workgroup name | domain name>*
Send a message from the local machine to a remote machineServer = <name of the local machine | uninitialized>

Recipient = <name of the remote machine>

Note : security restrictions apply for sending network messages, see NetMessageBufferSend(String, String, String, String, Int32) for more information.

Examples

An example configuration section to log information using this appender from the local machine, named LOCAL_PC, to machine OPERATOR_PC :

<appender name="NetSendAppender_Operator" type="log4net.Appender.NetSendAppender"><server value="LOCAL_PC" /><recipient value="OPERATOR_PC" /><layout type="log4net.Layout.PatternLayout" value="%-5p %c [%x] - %m%n" /></appender>
See Also