ConsoleHelper.
public static class ConsoleHelper
void WriteHeader(string text)Summary: Write a header in ASCII with blue color.
Parameters:
text
- The text.
void WriteHeader(string text, Color color)Summary: Write a header in ASCII with blue color.
Parameters:
text
- The text.
void WriteLog(ILogger logger, LogKeyValueItem logItem, bool includeKey = True, bool includeDescription = True)Summary: Writes the log item through the logger.
Parameters:
logger
- The logger.
logItem
- The log item.
includeKey
- if set to true [include key].
includeDescription
- if set to true [include description].
void WriteLogs(ILogger logger, List<LogKeyValueItem> logItems, bool includeKey = True, bool includeDescription = True)Summary: Writes the log items through the logger.
Parameters:
logger
- The logger.
logItems
- The log items.
includeKey
- if set to true [include key].
includeDescription
- if set to true [include description].
ProgramCsHelper.
public static class ProgramCsHelper
void SetMinimumLogLevelIfNeeded(string[] args, ConsoleLoggerConfiguration consoleLoggerConfiguration)Summary: Sets the minimum log level if needed from the verbose argument.
Parameters:
args
- The arguments.
consoleLoggerConfiguration
- The console logger configuration.