mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
* Added Expression based ignores to the PropertyScrambler, which makes a lot of the tests clearer because I'm not constantly resetting properties.
This commit is contained in:
committed by
Teravus Ovares (Dan Olivares)
parent
5dde4a4cfa
commit
dd78c250ae
19
OpenSim/Tests/Common/TestLogging.cs
Normal file
19
OpenSim/Tests/Common/TestLogging.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using log4net.Appender;
|
||||
using log4net.Layout;
|
||||
|
||||
namespace OpenSim.Tests.Common
|
||||
{
|
||||
public static class TestLogging
|
||||
{
|
||||
public static void LogToConsole()
|
||||
{
|
||||
ConsoleAppender consoleAppender = new ConsoleAppender();
|
||||
consoleAppender.Layout =
|
||||
new PatternLayout("%date [%thread] %-5level %logger [%property{NDC}] - %message%newline");
|
||||
log4net.Config.BasicConfigurator.Configure(consoleAppender);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user