diff options
Diffstat (limited to 'OpenSim/Tests/Common/TestLogging.cs')
-rw-r--r-- | OpenSim/Tests/Common/TestLogging.cs | 19 |
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using log4net.Appender; | ||
5 | using log4net.Layout; | ||
6 | |||
7 | namespace 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 | } | ||