-
Notifications
You must be signed in to change notification settings - Fork 0
5ea74454 31ad f4d0 f19d ee9a10af3765
Axel Kesseler edited this page Mar 1, 2023
·
8 revisions
The class to provide settings for all of the stream logging writers.
System.Object
Plexdata.LogWriter.Settings.LoggerSettings
Plexdata.LogWriter.Settings.StreamLoggerSettings
Namespace: Plexdata.LogWriter.Settings
Assembly: Plexdata.LogWriter.Stream (in Plexdata.LogWriter.Stream.dll) Version: 1.0.7.1
C#
public class StreamLoggerSettings : LoggerSettings,
IStreamLoggerSettings, ILoggerSettings, INotifyPropertyChanged
The StreamLoggerSettings type exposes the following members.
Name | Description | |
---|---|---|
StreamLoggerSettings | The static class constructor. | |
StreamLoggerSettings() | The standard class constructor. | |
StreamLoggerSettings(Stream) | The extended constructor that initializes all properties with its default values, but takes the stream instance. | |
StreamLoggerSettings(ILoggerSettingsSection) | The extended constructor that initializes all properties from provided configuration instance. | |
StreamLoggerSettings(ILoggerSettingsSection, Stream) | The extended constructor that initializes all properties from provided configuration instance. Property Stream is initialized from parameter stream. |
Name | Description | |
---|---|---|
Culture | Gets and sets the culture information to be used. (Inherited from LoggerSettings.) | |
Encoding | Gets or sets the used file encoding. | |
FullName | Determines whether the full name is used in messages or not. (Inherited from LoggerSettings.) | |
LogLevel | Gets and sets the logging level to be used. (Inherited from LoggerSettings.) | |
LogTime | Gets and sets the type of time to be used. (Inherited from LoggerSettings.) | |
LogType | Gets and sets the output format to be used. (Inherited from LoggerSettings.) | |
PartSplit | Gets and sets the character to separate each of the message parts. (Inherited from LoggerSettings.) | |
ShowKey | Determines whether the message key is shown or not. (Inherited from LoggerSettings.) | |
ShowTime | Determines whether the message timestamp is shown or not. (Inherited from LoggerSettings.) | |
Stream | Gets and sets the stream to be used as message sink. | |
TimeFormat | Gets and sets the time format to be used. (Inherited from LoggerSettings.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetSectionValues | Gets the values from section for provided key. (Inherited from LoggerSettings.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue(TType) | Gets the type-safe value of provided value. (Inherited from LoggerSettings.) | |
IsValidCultureName | Checks if value is a valid culture name. (Inherited from LoggerSettings.) | |
LoadSettings | The method loads all settings from provided configuration and initializes all properties accordingly. (Overrides LoggerSettings.LoadSettings(ILoggerSettingsSection).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RaisePropertyChanged | Informs listeners about property changes. (Inherited from LoggerSettings.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
PropertyChanged | Occurs when a property value changes. (Inherited from LoggerSettings.) |
Name | Description | |
---|---|---|
culture | This field represents currently assigned culture. (Inherited from LoggerSettings.) | |
DefaultEncoding | The default encoding value. | |
encoding | This field holds the chosen encoding. | |
fullName | This field represents current state of full name usage. (Inherited from LoggerSettings.) | |
logLevel | This field represents current logging level. (Inherited from LoggerSettings.) | |
logTime | This field represents current logging time. (Inherited from LoggerSettings.) | |
logType | This field represents current logging type. (Inherited from LoggerSettings.) | |
partSplit | This field represents current part split character. (Inherited from LoggerSettings.) | |
showKey | This field represents current state of key visibility. (Inherited from LoggerSettings.) | |
showTime | This field represents current state of time stamp visibility. (Inherited from LoggerSettings.) | |
stream | This field holds the used stream. | |
timeFormat | This field represents current time stamp format. (Inherited from LoggerSettings.) |
This class allows a configuration of classes derived from stream logger interfaces. But keep in mind, the availability of particular setting items depends of which of the available stream loggers is actually used.
Attention, logging type JSON is used as the default logging type.