/// <summary>
        /// Information sent to this LogTrace will appear on the Design Automation output
        /// </summary>
        public static void LogTrace(string format, params object[] args)
        {
            IGlobal      globalInterface = Autodesk.Max.GlobalInterface.Instance;
            IInterface14 coreInterface   = globalInterface.COREInterface14;
            ILogSys      log             = coreInterface.Log;

            // Note flags are necessary to produce Design Automation output. This is same as C++:
            // SYSLOG_INFO | SYSLOG_IGNORE_VERBOSITY | SYSLOG_BROADCAST
            log.LogEntry(0x00000004 | 0x00040000 | 0x00010000, false, "", string.Format(format, args));
        }
        /// <summary>
        /// Information sent to this LogTrace will appear on the Design Automation output
        /// </summary>
        private static void LogTrace(string format, params object[] args)
        {
            System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
            string output_msg            = string.Format("DLL {0} compiled on {1}; {2}",
                                                         System.IO.Path.GetFileName(a.Location),
                                                         File.GetLastWriteTime(a.Location),
                                                         string.Format(format, args));

            IGlobal      globalInterface = Autodesk.Max.GlobalInterface.Instance;
            IInterface14 coreInterface   = globalInterface.COREInterface14;
            ILogSys      log             = coreInterface.Log;

            // Note flags are necessary to produce Design Automation output. This is same as C++:
            // SYSLOG_INFO | SYSLOG_IGNORE_VERBOSITY | SYSLOG_BROADCAST
            log.LogEntry(0x00000004 | 0x00040000 | 0x00010000, false, "", output_msg);
        }
Exemplo n.º 3
0
 public bool Equals(ILogSys other)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 private Log(ILogSys maxLogger)
 {
     _logger = maxLogger;
 }