Ejemplo n.º 1
0
		private void InitializeLog() {
			LoggingConfiguration config = new LoggingConfiguration();

			DicomRichTextBoxTarget target = new DicomRichTextBoxTarget();
			target.UseDefaultRowColoringRules = true;
			target.Layout = "${message}";
			target.Control = rtbLog;

			config.AddTarget("DicomRichTextBox", target);
			config.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, target));

			LogManager.Configuration = config;
		}
Ejemplo n.º 2
0
        private void InitializeLog()
        {
            LoggingConfiguration config = new LoggingConfiguration();

            DicomRichTextBoxTarget target = new DicomRichTextBoxTarget();

            target.UseDefaultRowColoringRules = true;
            target.Layout  = "${message}";
            target.Control = rtbLog;

            config.AddTarget("DicomRichTextBox", target);
            config.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, target));

            LogManager.Configuration = config;
        }