mirror of
https://github.com/opensim/opensim.git
synced 2026-05-17 20:25:34 +08:00
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.
This commit is contained in:
@@ -45,6 +45,8 @@ namespace OpenSim.Region.ExtensionsScriptModule
|
||||
/// <remarks>Avoid at all costs. This should ONLY be used for LSL.</remarks>
|
||||
internal class ScriptInterpretedAPI
|
||||
{
|
||||
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
protected Key m_object;
|
||||
protected Scene m_scene;
|
||||
|
||||
@@ -109,7 +111,7 @@ namespace OpenSim.Region.ExtensionsScriptModule
|
||||
{
|
||||
//Dont do anything!
|
||||
}
|
||||
MainLog.Instance.Warn("script",
|
||||
m_log.Warn("[script]: " +
|
||||
"Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)");
|
||||
return;
|
||||
}
|
||||
@@ -117,7 +119,7 @@ namespace OpenSim.Region.ExtensionsScriptModule
|
||||
[Obsolete("Unimplemented")]
|
||||
public void osAdjustSoundVolume(float volume)
|
||||
{
|
||||
MainLog.Instance.Warn("script", "Unimplemented function called by script: osAdjustSoundVolume(float volume)");
|
||||
m_log.Warn("[script]: Unimplemented function called by script: osAdjustSoundVolume(float volume)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user