mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-22 16:58:06 +01:00
* WithDescription * WithConsumer / WithProvider * x * . * . * . * . * fix * pact * nullable * ficx * . * fix
66 lines
2.5 KiB
C#
66 lines
2.5 KiB
C#
using System;
|
|
using JetBrains.Annotations;
|
|
using WireMock.Admin.Requests;
|
|
|
|
namespace WireMock.Logging
|
|
{
|
|
/// <summary>
|
|
/// IWireMockLogger interface
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public interface IWireMockLogger
|
|
{
|
|
/// <summary>
|
|
/// Writes the message at the Debug level using the specified parameters.
|
|
/// </summary>
|
|
/// <param name="formatString">The format string.</param>
|
|
/// <param name="args">The arguments.</param>
|
|
[PublicAPI]
|
|
[StringFormatMethod("formatString")]
|
|
void Debug(string formatString, params object[] args);
|
|
|
|
/// <summary>
|
|
/// Writes the message at the Info level using the specified parameters.
|
|
/// </summary>
|
|
/// <param name="formatString">The format string.</param>
|
|
/// <param name="args">The arguments.</param>
|
|
[PublicAPI]
|
|
[StringFormatMethod("formatString")]
|
|
void Info(string formatString, params object[] args);
|
|
|
|
/// <summary>
|
|
/// Writes the message at the Warning level using the specified parameters.
|
|
/// </summary>
|
|
/// <param name="formatString">The format string.</param>
|
|
/// <param name="args">The arguments.</param>
|
|
[PublicAPI]
|
|
[StringFormatMethod("formatString")]
|
|
void Warn(string formatString, params object[] args);
|
|
|
|
/// <summary>
|
|
/// Writes the message at the Error level using the specified parameters.
|
|
/// </summary>
|
|
/// <param name="formatString">The format string.</param>
|
|
/// <param name="args">The arguments.</param>
|
|
[PublicAPI]
|
|
[StringFormatMethod("formatString")]
|
|
void Error(string formatString, params object[] args);
|
|
|
|
/// <summary>
|
|
/// Writes the message at the Error level using the specified exception.
|
|
/// </summary>
|
|
/// <param name="formatString">The format string.</param>
|
|
/// <param name="exception">The exception.</param>
|
|
[PublicAPI]
|
|
[StringFormatMethod("formatString")]
|
|
void Error(string formatString, Exception exception);
|
|
|
|
/// <summary>
|
|
/// Writes the LogEntryModel (LogRequestModel, LogResponseModel and more).
|
|
/// </summary>
|
|
/// <param name="logEntryModel">The Request Log Model.</param>
|
|
/// <param name="isAdminRequest">Defines if this request is an admin request.</param>
|
|
[PublicAPI]
|
|
void DebugRequestResponse(LogEntryModel logEntryModel, bool isAdminRequest);
|
|
}
|
|
} |