Esempio n. 1
0
        public void SystemLog(LogLevel level, string message, string action, string eventOrigin, string description, int result, Exception ex = null)
        {
            ActivityLogEvent logEvent = new ActivityLogEvent();

            logger.Log(logEvent.GetLogEvent(level, "PMSWeb", message, "", action, "", "", "", DateTime.Now, "", DateTime.Now, "", result, eventOrigin, description, ActionType.Undefined, ex));
        }
Esempio n. 2
0
        public void ActivityLog(LogLevel level, string message, string action, string primaryKeyVals, string changedColumn, string userId, string machineName, string eventOrigin, string description, ActionType actionType, int result, Exception ex = null)
        {
            ActivityLogEvent logEvent = new ActivityLogEvent();

            logger.Log(logEvent.GetLogEvent(level, "PMSWeb", message, "", action, primaryKeyVals, changedColumn, "", DateTime.Now, userId, DateTime.Now, machineName, result, eventOrigin, description, actionType, ex));
        }