Class EventLogHelper
Class for event helper methods
public class EventLogHelper : AbstractHelper<EventLogHelper>
- Inheritance
-
objectEventLogHelper
- Inherited Members
- Extension Methods
Constructors
EventLogHelper()
public EventLogHelper()
Properties
LogEventsToFile
Indicates if events are logged to the file.
public static bool LogEventsToFile { get; set; }
Property Value
- bool
LogEventsToFileInternal
Indicates if events are logged to the file.
protected virtual bool LogEventsToFileInternal { get; set; }
Property Value
- bool
LogFile
Physical path to the log file.
public static string LogFile { get; }
Property Value
- string
LogFileInternal
Physical path to the log file.
protected virtual string LogFileInternal { get; }
Property Value
- string
LogFolder
Physical path to folder where log file is saved.
public static string LogFolder { get; set; }
Property Value
- string
LogFolderInternal
Physical path to folder where log file is saved.
protected virtual string LogFolderInternal { get; set; }
Property Value
- string
ReadOnlyModeProvider
Gets the read-only mode provider instance.
protected virtual IReadOnlyModeProvider ReadOnlyModeProvider { get; }
Property Value
Methods
ClearEventLog(int, string, string)
Clears entire event log and writes new event record with information about this action and the user who performed it.
[Obsolete("The method is deprecated will be removed in a future version.")]
public static void ClearEventLog(int userId, string userName, string ipAddress)
Parameters
userIdintUser ID for logging purposes
userNamestringUser name for logging purposes
ipAddressstringIP address for logging purposes
ClearEventLogInternal(int, string, string)
Clears entire event log and writes new event record with information about this action and the user who performed it.
protected virtual void ClearEventLogInternal(int userId, string userName, string ipAddress)
Parameters
userIdintUser ID for logging purposes
userNamestringUser name for logging purposes
ipAddressstringIP address for logging purposes
LogDelete(GeneralizedInfo)
Logs deletion of an object.
[Obsolete("The method will be removed in a future version. Use IInfoObjectEventHandler to handle info object events and log custom messages using ILogger.")]
public static void LogDelete(GeneralizedInfo infoObj)
Parameters
infoObjGeneralizedInfoMain info object
LogDeleteInternal(GeneralizedInfo)
Logs deletion of an object.
[Obsolete("The method will be removed in a future version. The logic has been moved to IInfoObjectEventHandler service. Customization can be done by registering a custom implementation of it.")]
protected virtual void LogDeleteInternal(GeneralizedInfo infoObj)
Parameters
infoObjGeneralizedInfoMain info object
LogEventToFile(EventLogInfo)
Logs the log object to file.
public static void LogEventToFile(EventLogInfo eventLogInfo)
Parameters
eventLogInfoEventLogInfoEvent info object
LogEventToFileInternal(EventLogInfo)
Logs the log object to file.
protected virtual void LogEventToFileInternal(EventLogInfo eventLogInfo)
Parameters
eventLogInfoEventLogInfoEvent info object
LogInsert(GeneralizedInfo)
Logs insertion of an object.
[Obsolete("The method will be removed in a future version. Use IInfoObjectEventHandler to handle info object events and log custom messages using ILogger.")]
public static void LogInsert(GeneralizedInfo infoObj)
Parameters
infoObjGeneralizedInfoMain info object
LogInsertInternal(GeneralizedInfo)
Logs insertion of an object.
[Obsolete("The method will be removed in a future version. The logic has been moved to IInfoObjectEventHandler service. Customization can be done by registering a custom implementation of it.")]
protected virtual void LogInsertInternal(GeneralizedInfo infoObj)
Parameters
infoObjGeneralizedInfoMain info object
LogUpdate(GeneralizedInfo)
Logs update of an object.
[Obsolete("The method will be removed in a future version. Use IInfoObjectEventHandler to handle info object events and log custom messages using ILogger.")]
public static void LogUpdate(GeneralizedInfo infoObj)
Parameters
infoObjGeneralizedInfoMain info object
LogUpdateInternal(GeneralizedInfo)
Logs update of an object.
[Obsolete("The method will be removed in a future version. The logic has been moved to IInfoObjectEventHandler service. Customization can be done by registering a custom implementation of it.")]
protected virtual void LogUpdateInternal(GeneralizedInfo infoObj)
Parameters
infoObjGeneralizedInfoMain info object