Skip to content

Latest commit

 

History

History
78 lines (66 loc) · 2.59 KB

Atc.Console.Spectre.Helpers.md

File metadata and controls

78 lines (66 loc) · 2.59 KB

Atc.Console.Spectre.Helpers


ConsoleHelper

ConsoleHelper.

public static class ConsoleHelper

Static Methods

WriteHeader

void WriteHeader(string text)

Summary: Write a header in ASCII with blue color.

Parameters:
     text  -  The text.

WriteHeader

void WriteHeader(string text, Color color)

Summary: Write a header in ASCII with blue color.

Parameters:
     text  -  The text.

WriteLog

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].

WriteLogs

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

ProgramCsHelper.

public static class ProgramCsHelper

Static Methods

SetMinimumLogLevelIfNeeded

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.


Generated by MarkdownCodeDoc version 1.2