C# Class PeoplePickerRemediation.Console.Common.Utilities.Logger

ファイルを表示 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

CreateLogFile ( string folderPath, string fileName ) : string
CurrentDateTime ( ) : string
Write_TraceLog_AND_ConsoleMessage ( string Message, bool IsDateTime, bool loggingOnConsole, ConsoleColor foregroundColor ) : void

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

CreateLogFile() public method

public CreateLogFile ( string folderPath, string fileName ) : string
folderPath string
fileName string
return string

CurrentDateTime() public static method

public static CurrentDateTime ( ) : string
return string

Write_TraceLog_AND_ConsoleMessage() public static method

public static Write_TraceLog_AND_ConsoleMessage ( string Message, bool IsDateTime, bool loggingOnConsole, ConsoleColor foregroundColor ) : void
Message string
IsDateTime bool
loggingOnConsole bool
foregroundColor ConsoleColor
return void