| LoggerCreatorCreateLogger Method |
A factory method to create a logger instance.
Namespace:
Mavidian.DataConveyer.Logging
Assembly:
DataConveyer (in DataConveyer.dll) Version: 3.4.6+1324144ff7
Syntax public static ILogger CreateLogger(
LoggerType loggerType = LoggerType.Null,
string logDescription = "",
LogEntrySeverity loggingThreshold = LogEntrySeverity.None,
string loggerInfo = null
)
Public Shared Function CreateLogger (
Optional loggerType As LoggerType = LoggerType.Null,
Optional logDescription As String = "",
Optional loggingThreshold As LogEntrySeverity = LogEntrySeverity.None,
Optional loggerInfo As String = Nothing
) As ILogger
Parameters
- loggerType (Optional)
- Type: Mavidian.DataConveyer.LoggingLoggerType
Type of the logger to be created. If not specified, Null logger is assumed - logDescription (Optional)
- Type: SystemString
Description of the process being logged to be placed in the logger header. - loggingThreshold (Optional)
- Type: Mavidian.DataConveyer.LoggingLogEntrySeverity
The least severe severity level to be logged. If not specified, severity level of None is assumed. - loggerInfo (Optional)
- Type: SystemString
Additional information required to initialize the logger; specific to a particular logger type. In case of a LogFile logger, it is a path to the log file (if LogFile path absent, then DataConveyer.log file in the current folder will be assumed).
Return Value
Type:
ILoggerThe newly created logger instance.
See Also