2017-09-23 10:08:18 +02:00
|
|
|
|
using System.Diagnostics;
|
2017-09-14 19:29:12 +02:00
|
|
|
|
using System.Web.Http.ExceptionHandling;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Tests.TestHelpers.ControllerTesting
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Traces any errors for WebApi to the output window
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class TraceExceptionLogger : ExceptionLogger
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Log(ExceptionLoggerContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
Trace.TraceError(context.ExceptionContext.Exception.ToString());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2017-09-23 10:08:18 +02:00
|
|
|
|
}
|