private SystemLogCommand( SystemLogType systemLogType, SystemLogDestination destination, string application, Exception e ) { _systemLogType = systemLogType; _destination = destination; _application = application; _source = e.Source; _message = e.Message; _details = e.StackTrace; }
private SystemLogCommand( SystemLogType systemLogType, SystemLogDestination destination, string application, string source, string message, string details ) { _systemLogType = systemLogType; _destination = destination; _application = application; _source = source; _message = message; _details = details; }
public SystemLogModel(string username, string thread, SystemAction action, SystemLogType type, string shortDesc) { Username = username; Thread = thread; Action = action; Type = type; ShortDescription = shortDesc; IsException = false; CreatedDate = DateTime.Now; }
internal static SystemLog CreateSystemLog(SystemLogType systemLogType, Type objectType, string objectId, string remark) { SystemLog systemLog = PersisterService.CreateObject <SystemLog>(); systemLog.SystemLogType = systemLogType; systemLog.ObjectType = objectType.FullName; systemLog.ObjectId = objectId; systemLog.Remark = remark; return(systemLog); }
public void Add(SystemLogType logType, string keyWord, string remark) { var log = new SYS_Log { CreatedBy = Max.Framework.Authorization.AuthorizeHelper.GetCurrentUser().UserName, CreateTime = DateTime.Now, LogId = Guid.NewGuid().ToString(), LogType = (int)logType, Remark = remark, KeyWord = keyWord }; logRepository.Add(log); }
public static string GetSystemLogType(SystemLogType slt) { switch (slt) { case SystemLogType.Login: return("登录"); case SystemLogType.Logout: return("退出"); case SystemLogType.Error: return("异常错误"); default: break; } return(string.Empty); }
public static void RecordSystemLog(SystemLogType type, String name, String content, String remark) { try { SystemLog sl; OLSEntities olsEni; sl = new SystemLog { SL_Name = name, SL_Type = (Byte)type, SL_Content = content, SL_Remark = remark, SL_Status = (Byte)Status.Available, SL_AddTime = DateTime.Now }; olsEni = new OLSEntities(); olsEni.Entry(sl).State = EntityState.Added; if (0 == olsEni.SaveChanges()) { throw new Exception(ResponseMessage.SaveChangesError); } } catch (Exception ex) { RecordInnerLog(ex); } }
public static void RecordSystemLog(SystemLogType type, String name, String content) { RecordSystemLog(type, name, content, ""); }
public OnvifGetSystemLog(string uri, string userName, string password, SystemLogType logType) : base(uri, userName, password) { LogType = logType; }
public override SystemLog GetSystemLog(SystemLogType LogType) { throw new NotImplementedException(); }
public static void Log( SystemLogType systemLogType, SystemLogDestination destination, string application, Exception e ) { SystemLogCommand command; command = DataPortal.Execute<SystemLogCommand>( new SystemLogCommand( systemLogType, destination, application, e ) ); }
public static void Log( SystemLogType systemLogType, SystemLogDestination destination, string application, string source, string message, string details ) { SystemLogCommand command; command = DataPortal.Execute<SystemLogCommand>( new SystemLogCommand( systemLogType, destination, application, source, message, details ) ); }
SystemLog IOnVifDevice.GetSystemLog(SystemLogType LogType) { throw new NotImplementedException(); }
public override SystemLog GetSystemLog(SystemLogType LogType) { return(new SystemLog()); }