GenericOutput Class¶
Definition¶
namespace Sharplog.Outputs
- Implements: IDictionary<string, object>
-
Generic output that can generate an output from the
Type
parameter. Used to parse the settings file. Gets automatically constructed when provided to anOutputContainer
.
Constructors¶
Name |
---|
GenericOutput() |
GenericOutput(string?, Dictionary<string, object>?, string?, LevelContainer?) |
Properties¶
Inherited Methods¶
Name | Modifiers | Returns |
---|---|---|
Write(string, Log) | public |
|
Add(KeyValuePair<string, object>) | public |
|
Add(string, object) | public |
|
Clear() | public |
|
Contains(KeyValuePair<string, object>) | public |
bool |
ContainsKey(string) | public |
bool |
CopyTo(KeyValuePair<string, object>[], int) | public |
|
GetEnumerator() | public |
IEnumerator<KeyValuePair<string, object>> |
Remove(string) | public |
bool |
TryGetValue(string, out object) | public |
bool |
Methods¶
Name | Modifiers | Returns |
---|---|---|
ConstructOutput() | public |
Output |
Constructors¶
GenericOutput()¶
-
Initializes a new instance of the GenericOutput class.
GenericOutput(string?, Dictionary<string, object>?, string?, LevelContainer?)¶
-
Initializes a new instance of the GenericOutput class.
Parameter¶
type
string? ·null
- The type.
parameter
Dictionary<string, object>? ·null
- The parameter dictionary.
format
string? ·null
- The format.
levels
LevelContainer? ·null
- The level settings.
Properties¶
Type¶
- Type: string?
-
The type name of the output (found in namespace
SharpLog.Outputs
).
Methods¶
ConstructOutput()¶
-
Constructs an output from the given type and parameter.
Returns¶
- Type: Output
-
The constructed output.
Throws¶
- NullReferenceException
- Thrown when GenericOutput.Type is
null
. - ArgumentException
- Thrown when GenericOutput.Type class cannot be found.