Class DataficationLogger
- Namespace
- Datafication.Core.Logging
- Assembly
- Datafication.Core.dll
Datafication SDK-wide logging utility that allows controlling output verbosity across all SDK components. By default, only warnings and errors are shown to avoid cluttering application output.
public static class DataficationLogger
- Inheritance
-
objectDataficationLogger
Properties
IsVerboseEnabled
Gets or sets a value indicating whether verbose logging is enabled. When false (default), only warnings and errors are output. When true, detailed initialization and processing information is shown.
public static bool IsVerboseEnabled { get; set; }
Property Value
- bool
Methods
ForComponent(string)
Convenience method for logging informational messages from a specific component. This method returns a ComponentLogger instance for cleaner usage patterns.
public static ComponentLogger ForComponent(string componentName)
Parameters
componentNamestringThe name of the component that will be logging.
Returns
- ComponentLogger
A ComponentLogger instance bound to the specified component name.
LogDebug(string, string)
Logs a debug message with detailed information, only shown when verbose logging is enabled.
public static void LogDebug(string component, string message)
Parameters
componentstringThe component name or identifier.
messagestringThe debug message to log.
LogError(string, string)
Logs an error message that is always shown regardless of verbose setting.
public static void LogError(string component, string message)
Parameters
componentstringThe component name or identifier.
messagestringThe error message to log.
LogInfo(string, string)
Logs an informational message that is only shown when verbose logging is enabled.
public static void LogInfo(string component, string message)
Parameters
componentstringThe component name or identifier (e.g., "ONNX Embedder", "Data Connector").
messagestringThe message to log.
LogWarning(string, string)
Logs a warning message that is always shown regardless of verbose setting.
public static void LogWarning(string component, string message)
Parameters
componentstringThe component name or identifier.
messagestringThe warning message to log.