public void write(Logged logged)
 {
     foreach (var iSink in sinks)
     {
         iSink.write(logged);
     }
 }
        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();
        }