C# Class SebWindowsClient.DiagnosticsUtils.Logger

Manage logging of events.
Mostrar archivo Open project: SafeExamBrowser/seb-win

Private Properties

Property Type Description
Log void

Public Methods

Method Description
AddError ( string message, object eventSource, Exception exception, string details = null ) : void
AddInformation ( string message, object eventSource = null, Exception exception = null, string details = null ) : void
AddWarning ( string message, object eventSource, Exception exception = null, string details = null ) : void
InitLogger ( string logFileDirectory = null, string logFilePath = null ) : void

Private Methods

Method Description
Log ( Severity severity, string message, object eventSource, Exception exception, string details = null ) : void

Method Details

AddError() public static method

public static AddError ( string message, object eventSource, Exception exception, string details = null ) : void
message string
eventSource object
exception System.Exception
details string
return void

AddInformation() public static method

public static AddInformation ( string message, object eventSource = null, Exception exception = null, string details = null ) : void
message string
eventSource object
exception System.Exception
details string
return void

AddWarning() public static method

public static AddWarning ( string message, object eventSource, Exception exception = null, string details = null ) : void
message string
eventSource object
exception System.Exception
details string
return void

InitLogger() public static method

public static InitLogger ( string logFileDirectory = null, string logFilePath = null ) : void
logFileDirectory string
logFilePath string
return void