Пример #1
0
        /// <summary>
        /// Sets the activity logging type.
        /// </summary>
        public static void SetLogType(RockfishLog.LogType logType)
        {
            g_log_type = logType;
            ThePlugIn.Settings.SetEnumValue <RockfishLog.LogType>("LogType", g_log_type);

            if (RockfishServiceHost.TheServiceHost.IsRunning)
            {
                if (g_log_type == RockfishLog.LogType.Disabled)
                {
                    RockfishLog.TheLog.Stop();
                }
                else
                {
                    RockfishLog.TheLog.Start();
                }
            }
        }
Пример #2
0
 /// <summary>
 /// Called by Rhino when the plug-in is being loaded.
 /// </summary>
 protected override LoadReturnCode OnLoad(ref string errorMessage)
 {
     g_log_type = Settings.GetEnumValue <RockfishLog.LogType>("LogType", RockfishLog.LogType.Disabled);
     return(LoadReturnCode.Success);
 }
Пример #3
0
 /// <summary>
 /// Public constructor (called by Rhino).
 /// </summary>
 public RockfishServerPlugIn()
 {
     g_log_type = RockfishLog.LogType.Disabled;
     ThePlugIn  = this;
 }