diff options
author | Jeff Ames | 2008-02-05 19:44:27 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-05 19:44:27 +0000 |
commit | 6ed5283bc06a62f38eb517e67b975832b603bf61 (patch) | |
tree | e5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs | |
parent | Cut down on the number of packets sent during terraforming. Terraforming shou... (diff) | |
download | opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.zip opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2 opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.xz |
Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O.
This is mostly an in-place conversion, so lots of refactoring can still be done.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs index b3a0d4f..0f50358 100644 --- a/OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs +++ b/OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs | |||
@@ -45,6 +45,8 @@ namespace OpenSim.Region.ExtensionsScriptModule | |||
45 | /// <remarks>Avoid at all costs. This should ONLY be used for LSL.</remarks> | 45 | /// <remarks>Avoid at all costs. This should ONLY be used for LSL.</remarks> |
46 | internal class ScriptInterpretedAPI | 46 | internal class ScriptInterpretedAPI |
47 | { | 47 | { |
48 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
49 | |||
48 | protected Key m_object; | 50 | protected Key m_object; |
49 | protected Scene m_scene; | 51 | protected Scene m_scene; |
50 | 52 | ||
@@ -109,7 +111,7 @@ namespace OpenSim.Region.ExtensionsScriptModule | |||
109 | { | 111 | { |
110 | //Dont do anything! | 112 | //Dont do anything! |
111 | } | 113 | } |
112 | MainLog.Instance.Warn("script", | 114 | m_log.Warn("[script]: " + |
113 | "Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)"); | 115 | "Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)"); |
114 | return; | 116 | return; |
115 | } | 117 | } |
@@ -117,7 +119,7 @@ namespace OpenSim.Region.ExtensionsScriptModule | |||
117 | [Obsolete("Unimplemented")] | 119 | [Obsolete("Unimplemented")] |
118 | public void osAdjustSoundVolume(float volume) | 120 | public void osAdjustSoundVolume(float volume) |
119 | { | 121 | { |
120 | MainLog.Instance.Warn("script", "Unimplemented function called by script: osAdjustSoundVolume(float volume)"); | 122 | m_log.Warn("[script]: Unimplemented function called by script: osAdjustSoundVolume(float volume)"); |
121 | return; | 123 | return; |
122 | } | 124 | } |
123 | 125 | ||