Ejemplo n.º 1
0
        private void log(LogLevel level, string message, Exception ex, params object[] args)
        {
            var msg = new Message
            {
                Data    = ex,
                Content = message,
                Level   = level,
                Ticks   = DateTime.UtcNow.Ticks,
                Type    = MessageType.Log
            };

            _broadcaster.BroadcastMessage(msg);
            _logger.Log(level, ex, message, args);
        }
Ejemplo n.º 2
0
        private void log(LogLevel level, string message, Exception ex, params object[] args)
        {
            var msg = new Message
            {
                JobName     = _describer.Name,
                JobThreadId = WorkerId.ToString(),
                Data        = ex,
                Content     = string.Format(message, args),
                Level       = level,
                Ticks       = DateTime.UtcNow.Ticks,
                Type        = MessageType.Log
            };

            _broadcaster.BroadcastMessage(msg);
            _logger.Log(level, ex, message, args);
        }
Ejemplo n.º 3
0
 public void broadcastServiceStatics()
 {
     _broadcaster.BroadcastMessage(new ServiceStatics(_describers, Workers, _cfg, _ss.CurrentCount, _q.Count).GetMessage());
 }