diff options
author | Adam Frisby | 2008-05-08 04:34:02 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-08 04:34:02 +0000 |
commit | 80cbd468ea4dca31c0bf28607f4ab3ed3963f765 (patch) | |
tree | 2cc6dd32a1c954f8af16ac46f2a7a5138418fefa /OpenSim/Region/Modules/Python/PythonAPI | |
parent | * For no good reason (since there are a hundred million other things to fix),... (diff) | |
download | opensim-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.cs | 21 |
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 @@ | |||
1 | using System; | ||
2 | using System.Reflection; | ||
3 | using log4net; | ||
4 | |||
5 | namespace 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 | } | ||