aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r--OpenSim/Tests/Common/TestLogging.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/TestLogging.cs b/OpenSim/Tests/Common/TestLogging.cs
new file mode 100644
index 0000000..d8089c4
--- /dev/null
+++ b/OpenSim/Tests/Common/TestLogging.cs
@@ -0,0 +1,19 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using log4net.Appender;
5using log4net.Layout;
6
7namespace OpenSim.Tests.Common
8{
9 public static class TestLogging
10 {
11 public static void LogToConsole()
12 {
13 ConsoleAppender consoleAppender = new ConsoleAppender();
14 consoleAppender.Layout =
15 new PatternLayout("%date [%thread] %-5level %logger [%property{NDC}] - %message%newline");
16 log4net.Config.BasicConfigurator.Configure(consoleAppender);
17 }
18 }
19}