From 047270bdc83d029486215a418fada27b225dbab0 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 12 Dec 2012 23:13:34 +0000
Subject: Add "debug script log" command to allow setting a numeric debug level
on individual IScriptInstances for debugging purposes.
Current, state changes and event fires can be logged for individual scripts.
See command help for more details.
---
OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs')
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
index 0cef550..00a99c3 100644
--- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
@@ -59,6 +59,18 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
public interface IScriptInstance
{
///
+ /// Debug level for this script instance.
+ ///
+ ///
+ /// Level == 0, no extra data is logged.
+ /// Level >= 1, state changes are logged.
+ /// Level >= 2, event firing is logged.
+ ///
+ /// The debug level.
+ ///
+ int DebugLevel { get; set; }
+
+ ///
/// Is the script currently running?
///
bool Running { get; set; }
--
cgit v1.1