Ejemplo n.º 1
0
 public void write(Logged logged)
 {
     foreach (var iSink in sinks)
     {
         iSink.write(logged);
     }
 }
Ejemplo n.º 2
0
        public void write(Logged logged)
        {
            string formated = logged.serverity.ToString() + "-" + String.Join(".", logged.origin) + ": " + logged.message;

            if (logged.notifyConsole == Logged.EnumNotifyConsole.YES)
            {
                Console.WriteLine(formated);
            }

            stream.WriteLine(formated);
            flush();
        }