diff options
Diffstat (limited to 'OpenSim/Region/Modules/Python/PythonAPI/Console.cs')
-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 | } | ||