SendToFlatFileTraceListenerExtension.FlatFile Method
Adds a new FlatFileTraceListener to the logging settings and creates a reference to this Trace Listener for the current category source.
Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration
Assembly: Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function FlatFile ( _
context As ILoggingConfigurationSendTo, _
listenerName As String _
) As ILoggingConfigurationSendToFlatFileTraceListener
public static ILoggingConfigurationSendToFlatFileTraceListener FlatFile(
this ILoggingConfigurationSendTo context,
string listenerName
)
[ExtensionAttribute]
public:
static ILoggingConfigurationSendToFlatFileTraceListener^ FlatFile(
ILoggingConfigurationSendTo^ context,
String^ listenerName
)
public static function FlatFile(
context : ILoggingConfigurationSendTo,
listenerName : String
) : ILoggingConfigurationSendToFlatFileTraceListener
Parameters
- context
Type: Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Fluent.ILoggingConfigurationSendTo
Fluent interface extension point.
- listenerName
Type: System.String
The name of the FlatFileTraceListener.
Return Value
Fluent interface that can be used to further configure the created FlatFileTraceListenerData.
See Also
SendToFlatFileTraceListenerExtension Class
Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace
Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FlatFileTraceListenerData