Console.WriteLine()

You need to create a class in your assembly that inherits from the Dynamo.Logging.ILogSource interface and add the necessary methods from it. Dynamo will then detect that and forward the logged messages to the console (Ctrl + Shift + UpArrow)

public class ExecutionExtension : IExtension, ILogSource
    {
        #region ILogSource implementation

        public event Action<ILogMessage> MessageLogged;

        private void Log(ILogMessage obj)
        {
            if (MessageLogged != null)
            {
                MessageLogged(obj);
            }
        }

        private void Log(string message)
        {
            Log(LogMessage.Info(message));
        }
       #endregion
        ...
6 Likes