FCFL.NET Common Library - API Reference
AddLogFileAppender Method

A unique name to use for this appender for reference later.
The full or relative path to the file to create or use for logging. If one exists, it will be appended to.
Creates a new rolling log file appender and adds it to the configuration for use elsewhere.
Syntax
'Declaration
 
Public Shared Sub AddLogFileAppender( _
   ByVal appenderName As String, _
   ByVal fileName As String _
) 
public static void AddLogFileAppender( 
   string appenderName,
   string fileName
)

Parameters

appenderName
A unique name to use for this appender for reference later.
fileName
The full or relative path to the file to create or use for logging. If one exists, it will be appended to.
Remarks

This will create an initialize the appender. Nothing will be written to the file until this appender is associated with the root logger or any loggers in the hierarchy. See the AddAppenderToRoot and AddAppenderToLogger methods for more information on how to do this association.

NOTE: After you are finished configuring LogManager, you must call Reconfigure in order for the changes to fully take effect.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Reference

LogManager Class
LogManager Members

 

 


© 2010 Dovetail Software, Inc. - All rights reserved.
- Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
- .NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.

Send comments on this topic.