mirror of https://github.com/AMT-Cheif/Stylet.git
32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace Stylet.Logging
|
|
{
|
|
/// <summary>
|
|
/// ILogger implementation which does nothing - used by default
|
|
/// </summary>
|
|
public class NullLogger : ILogger
|
|
{
|
|
/// <summary>
|
|
/// Log the message as info
|
|
/// </summary>
|
|
/// <param name="format">A formatted message</param>
|
|
/// <param name="args">format parameters</param>
|
|
public void Info(string format, params object[] args) { }
|
|
|
|
/// <summary>
|
|
/// Log the message as a warning
|
|
/// </summary>
|
|
/// <param name="format">A formatted message</param>
|
|
/// <param name="args">format parameters</param>
|
|
public void Warn(string format, params object[] args) { }
|
|
|
|
/// <summary>
|
|
/// Log an exception as an error
|
|
/// </summary>
|
|
/// <param name="exception">Exception to log</param>
|
|
/// <param name="message">Additional message to add to the exception</param>
|
|
public void Error(Exception exception, string message = null) { }
|
|
}
|
|
}
|