Member group
AddLogging
Declaring type: LoggingServices
Module: Neo.Logging
Assembly: Neo.Logging.dll
Overloads / Variants
AddLogging
func AddLogging(factory: LoggerFactory) -> Result<void, ServiceError>
Extension from LoggingServices.AddLogging
Registers a caller-owned factory and singleton typed loggers; preserves existing overrides.
Parameters
| Name | Type | Description |
|---|---|---|
self |
ServiceCollection | |
factory |
LoggerFactory |
Return value
Result<void, ServiceError>
AddLogging
func AddLogging() -> Result<void, ServiceError>
Extension from LoggingServices.AddLogging
Registers a container-owned default factory and singleton typed loggers; preserves overrides. The default factory has no providers. Resolve LoggerFactory and configure it at startup.
Parameters
| Name | Type | Description |
|---|---|---|
self |
ServiceCollection |
Return value
Result<void, ServiceError>