using System; namespace Umbraco.Core.Logging { /// /// Implements on top of . /// public class DebugDiagnosticsLogger : ILogger { /// public void Error(Type reporting, Exception exception, string message) { System.Diagnostics.Debug.WriteLine(message + Environment.NewLine + exception, reporting.FullName); } /// public void Error(Type reporting, Exception exception, string messageTemplate, params object[] args) { System.Diagnostics.Debug.WriteLine(string.Format(messageTemplate, args) + Environment.NewLine + exception, reporting.FullName); } /// public void Warn(Type reporting, string format) { System.Diagnostics.Debug.WriteLine(format, reporting.FullName); } /// public void Warn(Type reporting, string format, params object[] args) { System.Diagnostics.Debug.WriteLine(string.Format(format, args), reporting.FullName); } /// public void Warn(Type reporting, Exception exception, string message) { System.Diagnostics.Debug.WriteLine(message + Environment.NewLine + exception, reporting.FullName); } /// public void Warn(Type reporting, Exception exception, string format, params object[] args) { System.Diagnostics.Debug.WriteLine(string.Format(format + Environment.NewLine + exception, args), reporting.FullName); } /// public void Info(Type reporting, string message) { System.Diagnostics.Debug.WriteLine(message, reporting.FullName); } /// public void Info(Type reporting, string format, params object[] args) { System.Diagnostics.Debug.WriteLine(string.Format(format, args), reporting.FullName); } /// public void Debug(Type reporting, string message) { System.Diagnostics.Debug.WriteLine(message, reporting.FullName); } /// public void Debug(Type reporting, string format, params object[] args) { System.Diagnostics.Debug.WriteLine(string.Format(format, args), reporting.FullName); } /// public void Verbose(Type reporting, string message) { System.Diagnostics.Debug.WriteLine(message, reporting.FullName); } /// public void Verbose(Type reporting, string format, params object[] args) { System.Diagnostics.Debug.WriteLine(string.Format(format, args), reporting.FullName); } public void Fatal(Type reporting, Exception exception, string message) { System.Diagnostics.Debug.WriteLine(message + Environment.NewLine + exception, reporting.FullName); } public void Fatal(Type reporting, Exception exception, string messageTemplate, params object[] args) { System.Diagnostics.Debug.WriteLine(string.Format(messageTemplate, args) + Environment.NewLine + exception, reporting.FullName); } } }