Class LogOutputs
Manages all log outputs
Inherited Members
Namespace: Unity.Cloud.Common
Assembly: Unity.Cloud.Common.dll
Syntax
public static class LogOutputs
  Properties
Outputs
The current list of ILogOutput.
Declaration
public static IReadOnlyList<ILogOutput> Outputs { get; }
  Property Value
| Type | Description | 
|---|---|
| IReadOnlyList<ILogOutput> | 
Methods
Add(ILogOutput)
Adds a ILogOutput to the list of outputs.
Declaration
public static void Add(ILogOutput logOutput)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ILogOutput | logOutput | The log output to add.  | 
      
Clear()
Clear all log outputs.
Declaration
public static void Clear()
  Contains(ILogOutput)
Returns whether the list of outputs contains a specific ILogOutput.
Declaration
public static bool Contains(ILogOutput logOutput)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ILogOutput | logOutput | The log output to verify.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | Whether the output is contained in the list.  | 
      
Contains<T>()
Returns whether the list of outputs contains any implementation of a ILogOutput with the specified type.
Declaration
public static bool Contains<T>() where T : ILogOutput
  Returns
| Type | Description | 
|---|---|
| bool | Whether the output type is contained in the list.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The type of ILogOutput to verify.  | 
      
Remove(ILogOutput)
Removes a ILogOutput from the list of outputs.
Declaration
public static bool Remove(ILogOutput logOutput)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ILogOutput | logOutput | The log output to remove.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | Whether the output was removed from the list.  | 
      
RemoveAll<T>()
Removes all implementations of a ILogOutput with the specified type from the list of outputs.
Declaration
public static bool RemoveAll<T>() where T : ILogOutput
  Returns
| Type | Description | 
|---|---|
| bool | Whether any output was removed from the list.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The type of ILogOutput to remove.  |