Class EventLogController
Provides a readily testable way to manage a Singleton.
Inheritance
Inherited Members
Namespace: DotNetNuke.Services.Log.EventLog
Assembly: DotNetNuke.dll
Syntax
public class EventLogController : ServiceLocator<IEventLogController, EventLogController>, IEventLogController, ILogController, IEventLogConfigService, IEventLogService, IEventLogger
Methods
| Improve this Doc View SourceAddLog(IPortalSettings, Int32, EventLogController.EventLogType)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(IPortalSettings portalSettings, int userID, EventLogController.EventLogType logType)
Parameters
Type | Name | Description |
---|---|---|
IPortalSettings | portalSettings | |
System.Int32 | userID | |
EventLogController.EventLogType | logType |
AddLog(PortalSettings, Int32, EventLogController.EventLogType)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(PortalSettings portalSettings, int userID, EventLogController.EventLogType logType)
Parameters
Type | Name | Description |
---|---|---|
PortalSettings | portalSettings | |
System.Int32 | userID | |
EventLogController.EventLogType | logType |
AddLog(LogInfo)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(LogInfo logInfo)
Parameters
Type | Name | Description |
---|---|---|
LogInfo | logInfo |
AddLog(LogProperties, IPortalSettings, Int32, String, Boolean)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(LogProperties properties, IPortalSettings portalSettings, int userID, string logTypeKey, bool bypassBuffering)
Parameters
Type | Name | Description |
---|---|---|
LogProperties | properties | |
IPortalSettings | portalSettings | |
System.Int32 | userID | |
System.String | logTypeKey | |
System.Boolean | bypassBuffering |
AddLog(LogProperties, PortalSettings, Int32, String, Boolean)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(LogProperties properties, PortalSettings portalSettings, int userID, string logTypeKey, bool bypassBuffering)
Parameters
Type | Name | Description |
---|---|---|
LogProperties | properties | |
PortalSettings | portalSettings | |
System.Int32 | userID | |
System.String | logTypeKey | |
System.Boolean | bypassBuffering |
AddLog(Object, IPortalSettings, Int32, String, EventLogController.EventLogType)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(object businessObject, IPortalSettings portalSettings, int userID, string userName, EventLogController.EventLogType logType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | businessObject | |
IPortalSettings | portalSettings | |
System.Int32 | userID | |
System.String | userName | |
EventLogController.EventLogType | logType |
AddLog(Object, IPortalSettings, Int32, String, String)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(object businessObject, IPortalSettings portalSettings, int userID, string userName, string logType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | businessObject | |
IPortalSettings | portalSettings | |
System.Int32 | userID | |
System.String | userName | |
System.String | logType |
AddLog(Object, PortalSettings, Int32, String, EventLogController.EventLogType)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(object businessObject, PortalSettings portalSettings, int userID, string userName, EventLogController.EventLogType logType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | businessObject | |
PortalSettings | portalSettings | |
System.Int32 | userID | |
System.String | userName | |
EventLogController.EventLogType | logType |
AddLog(Object, PortalSettings, Int32, String, String)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(object businessObject, PortalSettings portalSettings, int userID, string userName, string logType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | businessObject | |
PortalSettings | portalSettings | |
System.Int32 | userID | |
System.String | userName | |
System.String | logType |
AddLog(String, String, IPortalSettings, Int32, EventLogController.EventLogType)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(string propertyName, string propertyValue, IPortalSettings portalSettings, int userID, EventLogController.EventLogType logType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
System.String | propertyValue | |
IPortalSettings | portalSettings | |
System.Int32 | userID | |
EventLogController.EventLogType | logType |
AddLog(String, String, IPortalSettings, Int32, String)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(string propertyName, string propertyValue, IPortalSettings portalSettings, int userID, string logType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
System.String | propertyValue | |
IPortalSettings | portalSettings | |
System.Int32 | userID | |
System.String | logType |
AddLog(String, String, PortalSettings, Int32, EventLogController.EventLogType)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(string propertyName, string propertyValue, PortalSettings portalSettings, int userID, EventLogController.EventLogType logType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
System.String | propertyValue | |
PortalSettings | portalSettings | |
System.Int32 | userID | |
EventLogController.EventLogType | logType |
AddLog(String, String, PortalSettings, Int32, String)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(string propertyName, string propertyValue, PortalSettings portalSettings, int userID, string logType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
System.String | propertyValue | |
PortalSettings | portalSettings | |
System.Int32 | userID | |
System.String | logType |
AddLog(String, String, EventLogController.EventLogType)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLog(string propertyName, string propertyValue, EventLogController.EventLogType logType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
System.String | propertyValue | |
EventLogController.EventLogType | logType |
AddLogType(LogTypeInfo)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLogType(LogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
LogTypeInfo | logType |
AddLogType(String, String)
Provides a readily testable way to manage a Singleton.
Declaration
public void AddLogType(string configFile, string fallbackConfigFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | configFile | |
System.String | fallbackConfigFile |
AddLogTypeConfigInfo(LogTypeConfigInfo)
Adds a ILogTypeConfigInfo to the database.
Declaration
public void AddLogTypeConfigInfo(LogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
LogTypeConfigInfo | logTypeConfig |
AddSettingLog(EventLogController.EventLogType, String, Int32, String, String, Int32)
Provides a readily testable way to manage a Singleton.
Declaration
public static void AddSettingLog(EventLogController.EventLogType logTypeKey, string idFieldName, int idValue, string settingName, string settingValue, int userId)
Parameters
Type | Name | Description |
---|---|---|
EventLogController.EventLogType | logTypeKey | |
System.String | idFieldName | |
System.Int32 | idValue | |
System.String | settingName | |
System.String | settingValue | |
System.Int32 | userId |
ClearLog()
Clears the Event Log.
Declaration
public void ClearLog()
DeleteLog(LogInfo)
Deletes a specific Event Log.
Declaration
public void DeleteLog(LogInfo logInfo)
Parameters
Type | Name | Description |
---|---|---|
LogInfo | logInfo |
DeleteLogType(LogTypeInfo)
Deletes an existing ILogTypeInfo from the database.
Declaration
public void DeleteLogType(LogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
LogTypeInfo | logType |
DeleteLogTypeConfigInfo(LogTypeConfigInfo)
Delete an existing ILogTypeConfigInfo from the database..
Declaration
public void DeleteLogTypeConfigInfo(LogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
LogTypeConfigInfo | logTypeConfig |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<IEventLogController> GetFactory()
Returns
Type | Description |
---|---|
Func<IEventLogController> | A factory function. |
Overrides
GetLog(String)
Retrieves a single event log via the Log Guid.
Declaration
public ILogInfo GetLog(string logGuid)
Parameters
Type | Name | Description |
---|---|---|
System.String | logGuid | A string reprenstation of the log Guid. |
Returns
Type | Description |
---|---|
ILogInfo | The ILogInfo. |
GetLogs(Int32, String, Int32, Int32, ref Int32)
Get the Event Log.
Declaration
public List<LogInfo> GetLogs(int portalID, string logType, int pageSize, int pageIndex, ref int totalRecords)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | portalID | The portal id. |
System.String | logType | The log type. |
System.Int32 | pageSize | The page size. |
System.Int32 | pageIndex | The page index. |
System.Int32 | totalRecords | The total records. |
Returns
Type | Description |
---|---|
List<LogInfo> | The logs. |
GetLogTypeConfigInfo()
Provides a readily testable way to manage a Singleton.
Declaration
public ArrayList GetLogTypeConfigInfo()
Returns
Type | Description |
---|---|
ArrayList |
GetLogTypeConfigInfoByID(String)
Get the ILogTypeConfigInfo by id..
Declaration
public LogTypeConfigInfo GetLogTypeConfigInfoByID(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The id. |
Returns
Type | Description |
---|---|
LogTypeConfigInfo | The log type config info. |
GetLogTypeInfoDictionary()
Gets the log type info dictionary.
Declaration
public Dictionary<string, LogTypeInfo> GetLogTypeInfoDictionary()
Returns
Type | Description |
---|---|
Dictionary<System.String, LogTypeInfo> | The dictionary. |
GetSingleLog(LogInfo, LoggingProvider.ReturnType)
Provides a readily testable way to manage a Singleton.
Declaration
public object GetSingleLog(LogInfo log, LoggingProvider.ReturnType returnType)
Parameters
Type | Name | Description |
---|---|---|
LogInfo | log | |
LoggingProvider.ReturnType | returnType |
Returns
Type | Description |
---|---|
System.Object |
PurgeLogBuffer()
Purge the log buffer.
Declaration
public void PurgeLogBuffer()
UpdateLogType(LogTypeInfo)
Update the log type.
Declaration
public virtual void UpdateLogType(LogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
LogTypeInfo | logType |
UpdateLogTypeConfigInfo(LogTypeConfigInfo)
UPdate the log type config info.
Declaration
public virtual void UpdateLogTypeConfigInfo(LogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
LogTypeConfigInfo | logTypeConfig |
Explicit Interface Implementations
| Improve this Doc View SourceIEventLogConfigService.AddLogType(ILogTypeInfo)
Adds a ILogTypeInfo to the database.
Declaration
void IEventLogConfigService.AddLogType(ILogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeInfo | logType | The log type. |
IEventLogConfigService.AddLogTypeConfigInfo(ILogTypeConfigInfo)
Adds a ILogTypeConfigInfo to the database.
Declaration
void IEventLogConfigService.AddLogTypeConfigInfo(ILogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeConfigInfo | logTypeConfig | The log type configuration. |
IEventLogConfigService.DeleteLogType(ILogTypeInfo)
Deletes an existing ILogTypeInfo from the database.
Declaration
void IEventLogConfigService.DeleteLogType(ILogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeInfo | logType | The log type. |
IEventLogConfigService.DeleteLogTypeConfigInfo(ILogTypeConfigInfo)
Delete an existing ILogTypeConfigInfo from the database..
Declaration
void IEventLogConfigService.DeleteLogTypeConfigInfo(ILogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeConfigInfo | logTypeConfig | The log type config. |
IEventLogConfigService.UpdateLogType(ILogTypeInfo)
Update the log type.
Declaration
void IEventLogConfigService.UpdateLogType(ILogTypeInfo logType)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeInfo | logType | The log type info. |
IEventLogConfigService.UpdateLogTypeConfigInfo(ILogTypeConfigInfo)
UPdate the log type config info.
Declaration
void IEventLogConfigService.UpdateLogTypeConfigInfo(ILogTypeConfigInfo logTypeConfig)
Parameters
Type | Name | Description |
---|---|---|
ILogTypeConfigInfo | logTypeConfig | The log type config. |
IEventLogger.AddLog(ILogInfo)
Adds an Event Log.
Declaration
void IEventLogger.AddLog(ILogInfo logInfo)
Parameters
Type | Name | Description |
---|---|---|
ILogInfo | logInfo | The log info. |
IEventLogService.ClearLog()
Clears the Event Log.
Declaration
void IEventLogService.ClearLog()
IEventLogService.DeleteLog(ILogInfo)
Deletes a specific Event Log.
Declaration
void IEventLogService.DeleteLog(ILogInfo logInfo)
Parameters
Type | Name | Description |
---|---|---|
ILogInfo | logInfo | the log info. |
IEventLogService.PurgeLogBuffer()
Purge the log buffer.
Declaration
void IEventLogService.PurgeLogBuffer()