blob: d8089c4f9863533fcf20d0bfb747283ed3464e99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}
}
}
|