mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-21 01:37:42 +01:00
* . * , * PUBLISH_TESTRESULTS * fix logging * fix compile error * codefactor fix * Debug - Sonar + other things in csproj
66 lines
2.6 KiB
C#
66 lines
2.6 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([NotNull] string formatString, [NotNull] 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([NotNull] string formatString, [NotNull] 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([NotNull] string formatString, [NotNull] 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([NotNull] string formatString, [NotNull] 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([NotNull] string formatString, [NotNull] 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([NotNull] LogEntryModel logEntryModel, bool isAdminRequest);
|
|
}
|
|
} |