SecureFileLogger Class

MSBuild Extension Pack

SecureFileLogger Class MSBuild Extension Pack Help 4.0.12.0

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

Syntax:

/l:SecureFileLogger,MSBuild.ExtensionPack.Loggers.dll;logfile=YOURLOGFILE;rulefile=YOURRULEFILE;append=BOOL;verbosity=YOURVERBOSITY;encoding=YOURENCODING

Parameters:

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

SystemObject  Microsoft.Build.UtilitiesLogger
    MSBuild.ExtensionPack.LoggersSecureFileLogger

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

The SecureFileLogger type exposes the following members.

Constructors

  NameDescription
Public methodSecureFileLogger
Top
Methods

  NameDescription
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.)
Top
See Also

Reference