public void Save(ApplicationEvent log)
        {
            if (log == null) throw new ArgumentNullException("log");

            _logEventEntity.Add(log);
            _context.SaveChanges();
        }
Ejemplo n.º 2
0
        public void Warn(string warning)
        {
            if (string.IsNullOrEmpty(warning)) throw new ArgumentNullException("warning");

            ApplicationEvent evt = new ApplicationEvent();
            evt.EventType = "WARN";
            evt.Event = warning;

            _applicationEventRepository.Save(evt);
        }
Ejemplo n.º 3
0
        public void Inform(string message)
        {
            if (string.IsNullOrEmpty(message)) throw new ArgumentNullException("message");

            ApplicationEvent evt = new ApplicationEvent();
            evt.EventType = "INFORM";
            evt.Event = message;

            _applicationEventRepository.Save(evt);
        }
Ejemplo n.º 4
0
        public void Debug(string debug)
        {
            if (string.IsNullOrEmpty(debug)) throw new ArgumentNullException("debug");

            ApplicationEvent evt = new ApplicationEvent();
            evt.EventType = "DEBUG";
            evt.Event = debug;

            _applicationEventRepository.Save(evt);
        }