API Reference
InternalLogger
Internal logger that allows to write to console, error or wherever else is needed
Inheritance
- Object
- InternalLogger
Constructors
public InternalLogger(Boolean isVerbose = false) #Initialize logger
Parameters
- isVerbose System.Boolean = false
Methods
public Void WriteDebug(String message, params Object[] args) #VoidWrites a debug message.
Parameters
- message System.String
- Format string.
- args System.Object[]
- Arguments used for formatting.
public Void WriteError(String message) #VoidWrites an error message.
Parameters
- message System.String
- Message text.
public Void WriteError(String message, params Object[] args) #VoidWrites a formatted error message.
Parameters
- message System.String
- Format string.
- args System.Object[]
- Arguments used for formatting.
public Void WriteError(Exception exception, String message = null, params Object[] args) #VoidWrites an error message for an exception.
Parameters
- exception System.Exception
- Exception to log.
- message System.String = null
- Optional format string.
- args System.Object[]
- Arguments used for formatting.
public Void WriteInformation(String message, params Object[] args) #VoidWrites an informational message.
Parameters
- message System.String
- Format string.
- args System.Object[]
- Arguments used for formatting.
public Void WriteProgress(String activity, String currentOperation, Int32 percentCompleted, Nullable<Int32> currentSteps = null, Nullable<Int32> totalSteps = null) #VoidWrites a progress message.
Parameters
- activity System.String
- Current activity.
- currentOperation System.String
- Current operation description.
- percentCompleted System.Int32
- Completion percentage.
- currentSteps System.Nullable{System.Int32} = null
- Current progress steps.
- totalSteps System.Nullable{System.Int32} = null
- Total progress steps.
public Void WriteVerbose(String message) #VoidWrites a verbose message.
Parameters
- message System.String
- Message text.
public Void WriteVerbose(String message, params Object[] args) #VoidWrites a formatted verbose message.
Parameters
- message System.String
- Format string.
- args System.Object[]
- Arguments used for formatting.
public Void WriteWarning(String message) #VoidWrites a warning message.
Parameters
- message System.String
- Message text.
public Void WriteWarning(String message, params Object[] args) #VoidWrites a formatted warning message.
Parameters
- message System.String
- Format string.
- args System.Object[]
- Arguments used for formatting.
public Void WriteWarning(Exception exception, String message = null, params Object[] args) #VoidWrites a warning message for an exception.
Parameters
- exception System.Exception
- Exception instance.
- message System.String = null
- Optional format string.
- args System.Object[]
- Arguments for formatting.
Inherited Methods
Properties
public Boolean IsVerbose { get; set; } #If true, will write verbose messages to console
public Boolean IsError { get; set; } #If true, will write error messages to console
public Boolean IsWarning { get; set; } #If true, will write warning messages to console
public Boolean IsDebug { get; set; } #If true, will write debug messages to console
public Boolean IsInformation { get; set; } #If true, will write information messages to console
public Boolean IsProgress { get; set; } #if true, will write progress messages to console
Events
public event EventHandler<LogEventArgs> OnVerboseMessage #Define Verbose message event
public event EventHandler<LogEventArgs> OnWarningMessage #Define Warning message event
public event EventHandler<LogEventArgs> OnErrorMessage #Define Error message event
public event EventHandler<LogEventArgs> OnDebugMessage #Define Debug message event
public event EventHandler<LogEventArgs> OnProgressMessage #Define Progress message event
public event EventHandler<LogEventArgs> OnInformationMessage #Define Information message event