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

Afficher le fichier Open project: OfficeDev/PnP-Transformation

Méthodes publiques

Méthode 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 méthode

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

CreateLogFile() public méthode

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
Résultat string

CreateLogFile() public méthode

public CreateLogFile ( string folderPath, string fileName ) : string
folderPath string
fileName string
Résultat string

CurrentDateTime() public static méthode

public static CurrentDateTime ( ) : string
Résultat string

Write_TraceLog_AND_ConsoleMessage() public static méthode

public static Write_TraceLog_AND_ConsoleMessage ( string Message, bool IsDateTime, bool loggingOnConsole, ConsoleColor foregroundColor ) : void
Message string
IsDateTime bool
loggingOnConsole bool
foregroundColor ConsoleColor
Résultat void