Share via


ILoggingConfigurationSendToEventLogTraceListener.ToMachine Method

Specifies the machine that should be used to send messages to by this FormattedEventLogTraceListener.
The default machine is '.'.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Fluent
Assembly: Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

ILoggingConfigurationSendToEventLogTraceListener ToMachine(
    string machineName
)
'Declaration
Function ToMachine ( 
    machineName As String
) As ILoggingConfigurationSendToEventLogTraceListener
ILoggingConfigurationSendToEventLogTraceListener^ ToMachine(
    String^ machineName
)

Parameters

  • machineName
    Type: System.String
    The machine that should be used to send messages to.

Return Value

Type: ILoggingConfigurationSendToEventLogTraceListener
Fluent interface that can be used to further configure the created FormattedEventLogTraceListenerData.

See Also

ILoggingConfigurationSendToEventLogTraceListener Interface

ILoggingConfigurationSendToEventLogTraceListener Members

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Fluent Namespace

Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener

Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData