An open API service indexing awesome lists of open source software.

https://github.com/yakivyusin/yetanotherconsoletables.logger

The set of ILogger extensions for logging object collections using the YetAnotherConsoleTables library
https://github.com/yakivyusin/yetanotherconsoletables.logger

console console-table logger

Last synced: about 1 year ago
JSON representation

The set of ILogger extensions for logging object collections using the YetAnotherConsoleTables library

Awesome Lists containing this project

README

          

# YetAnotherConsoleTables.Logger [![NuGet](https://img.shields.io/nuget/v/YetAnotherConsoleTables.Logger.svg)](https://www.nuget.org/packages/YetAnotherConsoleTables.Logger/) [![Made in Ukraine](https://img.shields.io/badge/made_in-ukraine-ffd700.svg?labelColor=0057b7)](https://stand-with-ukraine.pp.ua)
The set of `Microsoft.Extensions.Logging.ILogger` extensions for logging object collections using the [YetAnotherConsoleTables](https://github.com/yakivyusin/YetAnotherConsoleTables) library. A tabular representation of a collection of objects can be useful in the case of logging to the console or a file.

```csharp
public static void LogTable(this ILogger logger, LogLevel logLevel, IEnumerable collection);
public static void LogTable(this ILogger logger, LogLevel logLevel, ConsoleTable table);
public static void LogTable(this ILogger logger, LogLevel logLevel, EventId eventId, IEnumerable collection);
public static void LogTable(this ILogger logger, LogLevel logLevel, EventId eventId, ConsoleTable table);
public static void LogTable(this ILogger logger, LogLevel logLevel, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTable(this ILogger logger, LogLevel logLevel, ConsoleTable table, ConsoleTableFormat tableFormat);
public static void LogTable(this ILogger logger, LogLevel logLevel, EventId eventId, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTable(this ILogger logger, LogLevel logLevel, EventId eventId, ConsoleTable table, ConsoleTableFormat tableFormat);

public static void LogTableTrace(this ILogger logger, IEnumerable collection);
public static void LogTableTrace(this ILogger logger, ConsoleTable table);
public static void LogTableTrace(this ILogger logger, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableTrace(this ILogger logger, ConsoleTable table, ConsoleTableFormat tableFormat);
public static void LogTableTrace(this ILogger logger, EventId eventId, IEnumerable collection);
public static void LogTableTrace(this ILogger logger, EventId eventId, ConsoleTable table);
public static void LogTableTrace(this ILogger logger, EventId eventId, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableTrace(this ILogger logger, EventId eventId, ConsoleTable table, ConsoleTableFormat tableFormat);

public static void LogTableDebug(this ILogger logger, IEnumerable collection);
public static void LogTableDebug(this ILogger logger, ConsoleTable table);
public static void LogTableDebug(this ILogger logger, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableDebug(this ILogger logger, ConsoleTable table, ConsoleTableFormat tableFormat);
public static void LogTableDebug(this ILogger logger, EventId eventId, IEnumerable collection);
public static void LogTableDebug(this ILogger logger, EventId eventId, ConsoleTable table);
public static void LogTableDebug(this ILogger logger, EventId eventId, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableDebug(this ILogger logger, EventId eventId, ConsoleTable table, ConsoleTableFormat tableFormat);

public static void LogTableInformation(this ILogger logger, IEnumerable collection);
public static void LogTableInformation(this ILogger logger, ConsoleTable table);
public static void LogTableInformation(this ILogger logger, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableInformation(this ILogger logger, ConsoleTable table, ConsoleTableFormat tableFormat);
public static void LogTableInformation(this ILogger logger, EventId eventId, IEnumerable collection);
public static void LogTableInformation(this ILogger logger, EventId eventId, ConsoleTable table);
public static void LogTableInformation(this ILogger logger, EventId eventId, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableInformation(this ILogger logger, EventId eventId, ConsoleTable table, ConsoleTableFormat tableFormat);

public static void LogTableWarning(this ILogger logger, IEnumerable collection);
public static void LogTableWarning(this ILogger logger, ConsoleTable table);
public static void LogTableWarning(this ILogger logger, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableWarning(this ILogger logger, ConsoleTable table, ConsoleTableFormat tableFormat);
public static void LogTableWarning(this ILogger logger, EventId eventId, IEnumerable collection);
public static void LogTableWarning(this ILogger logger, EventId eventId, ConsoleTable table);
public static void LogTableWarning(this ILogger logger, EventId eventId, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableWarning(this ILogger logger, EventId eventId, ConsoleTable table, ConsoleTableFormat tableFormat);

public static void LogTableError(this ILogger logger, IEnumerable collection);
public static void LogTableError(this ILogger logger, ConsoleTable table);
public static void LogTableError(this ILogger logger, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableError(this ILogger logger, ConsoleTable table, ConsoleTableFormat tableFormat);
public static void LogTableError(this ILogger logger, EventId eventId, IEnumerable collection);
public static void LogTableError(this ILogger logger, EventId eventId, ConsoleTable table);
public static void LogTableError(this ILogger logger, EventId eventId, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableError(this ILogger logger, EventId eventId, ConsoleTable table, ConsoleTableFormat tableFormat);

public static void LogTableCritical(this ILogger logger, IEnumerable collection);
public static void LogTableCritical(this ILogger logger, ConsoleTable table);
public static void LogTableCritical(this ILogger logger, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableCritical(this ILogger logger, ConsoleTable table, ConsoleTableFormat tableFormat);
public static void LogTableCritical(this ILogger logger, EventId eventId, IEnumerable collection);
public static void LogTableCritical(this ILogger logger, EventId eventId, ConsoleTable table);
public static void LogTableCritical(this ILogger logger, EventId eventId, IEnumerable collection, ConsoleTableFormat tableFormat);
public static void LogTableCritical(this ILogger logger, EventId eventId, ConsoleTable table, ConsoleTableFormat tableFormat);
```