Updated to latest CDF version that has a few bug fixes and added a CDF logger.
This commit is contained in:
40
src/Umbraco.Web/UI/CdfLogger.cs
Normal file
40
src/Umbraco.Web/UI/CdfLogger.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using ClientDependency.Core.Logging;
|
||||
using Umbraco.Core.Logging;
|
||||
|
||||
namespace Umbraco.Web.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// A logger for ClientDependency
|
||||
/// </summary>
|
||||
public class CdfLogger : ILogger
|
||||
{
|
||||
public void Debug(string msg)
|
||||
{
|
||||
LogHelper.Debug<CdfLogger>(msg);
|
||||
}
|
||||
|
||||
public void Info(string msg)
|
||||
{
|
||||
LogHelper.Info<CdfLogger>(msg);
|
||||
}
|
||||
|
||||
public void Warn(string msg)
|
||||
{
|
||||
LogHelper.Warn<CdfLogger>(msg);
|
||||
}
|
||||
|
||||
public void Error(string msg, Exception ex)
|
||||
{
|
||||
LogHelper.Error<CdfLogger>(msg, ex);
|
||||
}
|
||||
|
||||
public void Fatal(string msg, Exception ex)
|
||||
{
|
||||
LogHelper.Error<CdfLogger>(msg, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user