SecureFileLogger ClassMSBuild Extension Pack Help

This logger can be used to replace text that is logged with hashes (#) based on a set of Regular Expression matches




Logfile: A optional parameter that specifies the file in which to store the log information. Defaults to securemsbuild.log

RuleFile: A optional parameter that specifies the file in which to read regular expressions from. Use one Regular Expression per line. Defaults to (?i:.*password.*)

Append: An optional boolean parameter that indicates whether or not to append the log to the specified file: true to add the log to the text already present in the file; false to overwrite the contents of the file. The default is false.

Verbosity: An optional parameter that overrides the global verbosity setting for this file logger only. This enables you to log to several loggers, each with a different verbosity.

Encoding: An optional parameter that specifies the encoding for the file, for example, UTF-8.

Inheritance Hierarchy


Namespace: MSBuild.ExtensionPack.Loggers
Assembly: MSBuild.ExtensionPack.Loggers (in MSBuild.ExtensionPack.Loggers.dll) Version:

The SecureFileLogger type exposes the following members.


Public methodSecureFileLogger

Public methodInitialize
Initialize Override
(Overrides LoggerInitialize(IEventSource).)
Public methodShutdown
Shutdown() is guaranteed to be called by MSBuild at the end of the build, after all events have been raised.
(Overrides LoggerShutdown.)
See Also