diff options
author | Kunnis | 2009-08-16 03:35:31 -0500 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2009-08-16 14:34:16 -0400 |
commit | dd78c250aed0924d06e28a826c2ad565ca232045 (patch) | |
tree | 331487699d7d2fba8d00cd2a8e57b85e8f77e794 /OpenSim/Tests/Common/TestLogging.cs | |
parent | * More improvements to BasicAssetTest.cs (diff) | |
download | opensim-SC-dd78c250aed0924d06e28a826c2ad565ca232045.zip opensim-SC-dd78c250aed0924d06e28a826c2ad565ca232045.tar.gz opensim-SC-dd78c250aed0924d06e28a826c2ad565ca232045.tar.bz2 opensim-SC-dd78c250aed0924d06e28a826c2ad565ca232045.tar.xz |
* Added Expression based ignores to the PropertyScrambler, which makes a lot of the tests clearer because I'm not constantly resetting properties.
Diffstat (limited to '')
-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 | } | ||