aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Modules/Python/PythonAPI
diff options
context:
space:
mode:
authorAdam Frisby2008-05-08 04:34:02 +0000
committerAdam Frisby2008-05-08 04:34:02 +0000
commit80cbd468ea4dca31c0bf28607f4ab3ed3963f765 (patch)
tree2cc6dd32a1c954f8af16ac46f2a7a5138418fefa /OpenSim/Region/Modules/Python/PythonAPI
parent* For no good reason (since there are a hundred million other things to fix),... (diff)
downloadopensim-SC_OLD-80cbd468ea4dca31c0bf28607f4ab3ed3963f765.zip
opensim-SC_OLD-80cbd468ea4dca31c0bf28607f4ab3ed3963f765.tar.gz
opensim-SC_OLD-80cbd468ea4dca31c0bf28607f4ab3ed3963f765.tar.bz2
opensim-SC_OLD-80cbd468ea4dca31c0bf28607f4ab3ed3963f765.tar.xz
* Some refactorings.
* Added shell of new Python scripting engine. Similar in design to the one used by Rex, but will be structured at a region rather than object level, also is a region module.
Diffstat (limited to 'OpenSim/Region/Modules/Python/PythonAPI')
-rw-r--r--OpenSim/Region/Modules/Python/PythonAPI/Console.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Region/Modules/Python/PythonAPI/Console.cs b/OpenSim/Region/Modules/Python/PythonAPI/Console.cs
new file mode 100644
index 0000000..0d23dc6
--- /dev/null
+++ b/OpenSim/Region/Modules/Python/PythonAPI/Console.cs
@@ -0,0 +1,21 @@
1using System;
2using System.Reflection;
3using log4net;
4
5namespace OpenSim.Region.Modules.Python.PythonAPI
6{
7 class Console
8 {
9 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
10
11 public void WriteLine(string txt)
12 {
13 m_log.Info(txt);
14 }
15
16 public void WriteLine(string txt, params Object[] e)
17 {
18 m_log.Info(String.Format(txt, e));
19 }
20 }
21}