mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-19 08:37:23 +01:00
* refactor * rename api * -preview-01 * logger * move * RandomDataGenerator.Net * . * ISettings * renames... * refactor CommandlineParser logic * remove standalone * Remove Interfaces * Update tests * WireMock.Net.StandAlone * . * fix * . * _settings * Admin * WireMock.Net.Abstractions * fix build * rename WireMockServer * fix compile errors
56 lines
2.2 KiB
C#
56 lines
2.2 KiB
C#
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 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);
|
|
}
|
|
} |