Interface IEventLogConfigService
The event log config service provides APIs for managing the Event Log configuration and individual logs itself.
Namespace: DotNetNuke.Abstractions.Logging
Assembly: DotNetNuke.Abstractions.dll
Syntax
public interface IEventLogConfigService
Methods
| Improve this Doc View SourceAddLogType(ILogTypeInfo)
Adds a ILogTypeInfo to the database.
Declaration
void AddLogType(ILogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeInfo | logType | The log type. |
AddLogType(String, String)
Adds the log type via configuration file.
Declaration
void AddLogType(string configFile, string fallbackConfigFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | configFile | The configuration file. |
System.String | fallbackConfigFile | The fallback configuration file. |
AddLogTypeConfigInfo(ILogTypeConfigInfo)
Adds a ILogTypeConfigInfo to the database.
Declaration
void AddLogTypeConfigInfo(ILogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeConfigInfo | logTypeConfig | The log type configuration. |
DeleteLogType(ILogTypeInfo)
Deletes an existing ILogTypeInfo from the database.
Declaration
void DeleteLogType(ILogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeInfo | logType | The log type. |
DeleteLogTypeConfigInfo(ILogTypeConfigInfo)
Delete an existing ILogTypeConfigInfo from the database..
Declaration
void DeleteLogTypeConfigInfo(ILogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeConfigInfo | logTypeConfig | The log type config. |
GetLogTypeConfigInfo()
Gets all the ILogTypeConfigInfo from the database.
Declaration
IEnumerable<ILogTypeConfigInfo> GetLogTypeConfigInfo()
Returns
Type | Description |
---|---|
IEnumerable<ILogTypeConfigInfo> | The logs. |
GetLogTypeConfigInfoByID(String)
Get the ILogTypeConfigInfo by id..
Declaration
ILogTypeConfigInfo GetLogTypeConfigInfoByID(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The id. |
Returns
Type | Description |
---|---|
ILogTypeConfigInfo | The log type config info. |
GetLogTypeInfoDictionary()
Gets the log type info dictionary.
Declaration
IDictionary<string, ILogTypeInfo> GetLogTypeInfoDictionary()
Returns
Type | Description |
---|---|
IDictionary<System.String, ILogTypeInfo> | The dictionary. |
UpdateLogType(ILogTypeInfo)
Update the log type.
Declaration
void UpdateLogType(ILogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeInfo | logType | The log type info. |
UpdateLogTypeConfigInfo(ILogTypeConfigInfo)
UPdate the log type config info.
Declaration
void UpdateLogTypeConfigInfo(ILogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeConfigInfo | logTypeConfig | The log type config. |