mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
This commit is contained in:
@@ -30,6 +30,8 @@ using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using OpenMetaverse;
|
||||
using OpenSim.Region.ScriptEngine.Shared;
|
||||
using log4net;
|
||||
using System.Reflection;
|
||||
|
||||
namespace OpenSim.ScriptEngine.Shared
|
||||
{
|
||||
@@ -38,6 +40,7 @@ namespace OpenSim.ScriptEngine.Shared
|
||||
/// </summary>
|
||||
public class EventParams
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
public string EventName;
|
||||
public Object[] Params;
|
||||
public Region.ScriptEngine.Shared.DetectParams[] DetectParams;
|
||||
@@ -66,9 +69,14 @@ namespace OpenSim.ScriptEngine.Shared
|
||||
}
|
||||
public void test2(string functionName, params object[] args)
|
||||
{
|
||||
System.Console.WriteLine(functionName, args);
|
||||
String logMessage = functionName;
|
||||
foreach (object arg in args)
|
||||
{
|
||||
logMessage +=", "+arg;
|
||||
}
|
||||
m_log.Debug(logMessage);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user