Click or drag to resize

ILogger Interface

Logging facade to be implemented by the actual logger, e.g. NLog.

Namespace:  Mavidian.DataConveyer.Logging
Assembly:  DataConveyer (in DataConveyer.dll) Version: 3.4.6+1324144ff7
Syntax
public interface ILogger : IDisposable

The ILogger type exposes the following members.

Properties
  NameDescription
Public propertyLogDescription
Description of the process being logged; placed in the logger header. May be helpful in distinguishing between differenet entries place in the same log.
Public propertyLoggerType
Type of the logger. In case of problems creating the logger of given type, Null logger is assumed.
Public propertyLoggingThreshold
The least severe severity level of log entries to be logged. One of:
  • None - No log entries will be logged at all (default)
  • Fatal - Only fatal errors, i.e. those that caused process to halt will be logged
  • Error - All errors, either fatal or those that allowed process continuation (upon skipping some data) will be logged
  • Warning - In addition to errors, all warnings (scenarios where Data Conveyer was able to repair unexpected data) will be logged
  • Information - All log entries: errors, warnings and informational messages will be logged (except verbose debug messages intended for troubleshooting purposes)
  • Debug - All possible log entries will be logged
If not specified during logger construction, a level of None will be assumed (i.e. no entries will be logged). See also LogEntrySeverity.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodLog
Log a given log entry.
Top
See Also