Interface ILogProfile
Interface for managing loggers based on application components or installers.
Namespace: Serenity.Logging.Application.Interfaces
Assembly: Serenity.Global.Application.dll
Syntax
public interface ILogProfile
Methods
GetDefaultLogger()
Gets the default logger for general logging purposes.
Declaration
ILogService GetDefaultLogger()
Returns
| Type | Description |
|---|---|
| ILogService | The default log service instance. |
TryGetLoggerFor(Type, out ILogService)
Tries to get a logger for the specified installer type.
Declaration
bool TryGetLoggerFor(Type installerType, out ILogService logger)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | installerType | The type of the installer requesting a logger. |
| ILogService | logger | The retrieved logger if found; otherwise, null. |
Returns
| Type | Description |
|---|---|
| bool | True if a logger was found for the installer type; otherwise, false. |