API Reference
InternalLogger
Lightweight console-capable logger modeled after ADPlayground.InternalLogger. No external dependencies; emits events and optionally writes to console based on flags.
Inheritance
- Object
- InternalLogger
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property LoggingMessages.Logger
Accepted by parameters
- Method CxLogging.Configure
- Method ServicesQuery.AreServicesRunning
- Method ServicesQuery.AreServicesRunningAsync
- Method ServicesQuery.EnsureServicesRunning
- Method ServicesQuery.EnsureServicesRunningAsync
- Method ServicesQuery.GetServiceStartupType
- Method ServicesQuery.QueryAllAsync
- Method ServicesQuery.QueryAllAsync
- Method ServicesQuery.QueryAllViaCimAsync
- Method ServicesQuery.QueryAllViaWmiAsync
- Method ServicesQuery.QueryServices
- Method ServicesQuery.QueryServicesAsync
- Method ServicesQuery.QueryServicesAsyncEnumerable
Constructors
public InternalLogger() #Methods
public Void WriteDebug(String message, params Object[] args) #VoidWrites a debug message.
Parameters
- message System.String
- Message template.
- args System.Object[]
- Template parameters.
public Void WriteError(Exception exception, String message = null, params Object[] args) #VoidWrites an error message and optional exception details.
Parameters
- exception System.Exception
- The exception to log.
- message System.String = null
- Optional message template.
- args System.Object[]
- Template parameters.
public Void WriteInformation(String message, params Object[] args) #VoidWrites an information message.
Parameters
- message System.String
- Message template.
- args System.Object[]
- Template parameters.
public Void WriteProgress(String message, params Object[] args) #VoidWrites a progress message.
Parameters
- message System.String
- Message template.
- args System.Object[]
- Template parameters.
public Void WriteVerbose(String message, params Object[] args) #VoidWrites a verbose message.
Parameters
- message System.String
- Message template.
- args System.Object[]
- Template parameters.
public Void WriteWarning(String message, params Object[] args) #VoidWrites a warning message.
Parameters
- message System.String
- Message template.
- args System.Object[]
- Template parameters.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Boolean IsVerbose { get; set; } #Enables verbose console output.
public Boolean IsError { get; set; } #Enables error console output.
public Boolean IsWarning { get; set; } #Enables warning console output.
public Boolean IsDebug { get; set; } #Enables debug console output.
public Boolean IsInformation { get; set; } #Enables information console output.
public Boolean IsProgress { get; set; } #Enables progress console output.
Events
public event EventHandler<LogEventArgs> OnVerboseMessage #Raised for verbose messages.
public event EventHandler<LogEventArgs> OnWarningMessage #Raised for warning messages.
public event EventHandler<LogEventArgs> OnErrorMessage #Raised for error messages.
public event EventHandler<LogEventArgs> OnDebugMessage #Raised for debug messages.
public event EventHandler<LogEventArgs> OnProgressMessage #Raised for progress messages.
public event EventHandler<LogEventArgs> OnInformationMessage #Raised for information messages.