Show / Hide Table of Contents

AddAppenderToLogger Method

Overload List

Overload Description
AddAppenderToLogger(String,Type) Links a given appender to the specified .NET type-identified logger.  
AddAppenderToLogger(String,String) Links a given appender to the specified logger name.  

Remarks

This will not clear out any existing appenders that may be configured for that logger, it will merely add it to the list. The only way to clear the appenders for a logger is to call ResetConfiguration and reconfigure all the loggers again.

To prepare a rolling file-based appender, see the AddLogFileAppender method.

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 family

Reference

LogManager Class LogManager Members

Back to top © 2022 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.