C# Class Transformation.PowerShell.Common.Utilities.Logger

Exibir arquivo Open project: OfficeDev/PnP-Transformation

Public Methods

Method Description
AddMessageToTraceLogFile ( bool logging, string traceLogMessage = "N/A" ) : void
CreateLogFile ( string folderPath ) : string

This method is used to create Log File. It reterives the default path from Constants file and suffice with current date. The TraceLog output file will be in TEXT format

CurrentDateTime ( ) : string

Method Details

AddMessageToTraceLogFile() public static method

public static AddMessageToTraceLogFile ( bool logging, string traceLogMessage = "N/A" ) : void
logging bool
traceLogMessage string
return void

CreateLogFile() public method

This method is used to create Log File. It reterives the default path from Constants file and suffice with current date. The TraceLog output file will be in TEXT format
public CreateLogFile ( string folderPath ) : string
folderPath string
return string

CurrentDateTime() public static method

public static CurrentDateTime ( ) : string
return string