The Log73 console.
Assembly : Log73.dllโ Declaration
public static class Console
Copy Propertiesโ Set to System.Console.Out
by default.
Declaration
public static TextWriter Out { get; set; }
Copy Set to System.Console.Error
by default.
Declaration
public static TextWriter Err { get; set; }
Copy Set to System.Console.In
by default.
Declaration
public static TextReader In { get; set; }
Copy Declaration
public static string Title { get; set; }
Copy BufferHeightโ Declaration
public static int BufferHeight { get; set; }
Copy BufferWidthโ Declaration
public static int BufferWidth { get; set; }
Copy CapsLockโ Declaration
public static bool CapsLock { get; }
Copy CursorLeftโ Declaration
public static int CursorLeft { get; set; }
Copy CursorSizeโ Declaration
public static int CursorSize { get; set; }
Copy CursorTopโ Declaration
public static int CursorTop { get; set; }
Copy CursorVisibleโ Declaration
public static bool CursorVisible { get; set; }
Copy Declaration
public static Encoding InputEncoding { get; set; }
Copy KeyAvailableโ Declaration
public static bool KeyAvailable { get; }
Copy NumberLockโ Declaration
public static bool NumberLock { get; }
Copy OutputEncodingโ Declaration
public static Encoding OutputEncoding { get; set; }
Copy WindowHeightโ Declaration
public static int WindowHeight { get; set; }
Copy WindowLeftโ Declaration
public static int WindowLeft { get; set; }
Copy WindowTopโ Declaration
public static int WindowTop { get; set; }
Copy WindowWidthโ Declaration
public static int WindowWidth { get; set; }
Copy IsErrorRedirectedโ Declaration
public static bool IsErrorRedirected { get; }
Copy Declaration
public static bool IsInputRedirected { get; }
Copy IsOutputRedirectedโ Declaration
public static bool IsOutputRedirected { get; }
Copy LargerWindowHeightโ Declaration
public static int LargerWindowHeight { get; }
Copy LargerWindowWidthโ Declaration
public static int LargerWindowWidth { get; }
Copy Declaration
public static bool TreatControlCAsInput { get; set; }
Copy Optionsโ Declaration
public static Log73Options Options
Copy Declaration
public static readonly ConsoleLogObject Object
Copy Declaration
public static readonly ConsoleConfigureObject Configure
Copy Methodsโ AtBottomLog(String, Boolean)โ Keeps <code data-dev-comment-type="paramref" class="paramref">str</code> at the bottom of your console.
Declaration
public static void AtBottomLog(string str, bool clearPrevious = false)
Copy Parametersโ Type Name Description System.String
str The string to keep at the bottom of your console. Less than the width of your console. System.Boolean
clearPrevious If you want to overwrite the previous bottom message.
WriteLine(Object)โ Logs the <code data-dev-comment-type="paramref" class="paramref">value</code> using the Log73.MessageTypes.Info Log73.MessageType .
Declaration
public static void WriteLine(object value)
Copy Parametersโ Type Name System.Object
value
WriteLine()โ Logs a newline.
Declaration
public static void WriteLine()
Copy Write(Object)โ Declaration
public static void Write(object value)
Copy Parametersโ Type Name System.Object
value
Info(Object)โ Logs the <code data-dev-comment-type="paramref" class="paramref">value</code> using the Log73.MessageTypes.Info Log73.MessageType .
Declaration
public static void Info(object value)
Copy Parametersโ Type Name System.Object
value
Warn(Object)โ Logs the <code data-dev-comment-type="paramref" class="paramref">value</code> using the Log73.MessageTypes.Warn Log73.MessageType .
Declaration
public static void Warn(object value)
Copy Parametersโ Type Name System.Object
value
Error(Object)โ Logs the <code data-dev-comment-type="paramref" class="paramref">value</code> using the Log73.MessageTypes.Error Log73.MessageType .
Declaration
public static void Error(object value)
Copy Parametersโ Type Name System.Object
value
Debug(Object)โ Logs the <code data-dev-comment-type="paramref" class="paramref">value</code> using the Log73.MessageTypes.Debug Log73.MessageType .
Declaration
public static void Debug(object value)
Copy Parametersโ Type Name System.Object
value
Task(String, Task)โ Log a System.Threading.Tasks.Task
's start and failing or finishing.
Declaration
public static void Task(string name, Task task)
Copy Parametersโ Type Name System.String
name System.Threading.Tasks.Task
task
Log(Object)โ Declaration
public static void Log(object value)
Copy Parametersโ Type Name System.Object
value
Log(LogType, Object)โ Declaration
public static void Log(LogType logType, object value)
Copy Parametersโ Log(MessageType, Object, LogInfoContext)โ Declaration
public static void Log(MessageType msgType, object value, LogInfoContext context = null)
Copy Parametersโ Exception(Exception)โ Logs an exception with Log73.MessageTypes.Error with it's StackTrace if it isn't null.
Declaration
public static void Exception(Exception exception)
Copy Parametersโ Type Name System.Exception
exception
StopwatchTask(Func<Task>, Action<Int64>)โ Invokes <code data-dev-comment-type="paramref" class="paramref">finished</code> after the Log73.Console.Task(System.String%2cSystem.Threading.Tasks.Task)
returned by <code data-dev-comment-type="paramref" class="paramref">code</code> has finished.
Declaration
public static async Task StopwatchTask(Func<Task> code, Action<long> finished)
Copy Returnsโ System.Threading.Tasks.Task
Parametersโ Type Name Description System.Func<System.Threading.Tasks.Task>
code The to be timed. System.Action<System.Int64>
finished
SetCursorPosition((Int32 left, Int32 top))โ Declaration
public static void SetCursorPosition((int left, int top) position)
Copy Parametersโ Type Name System.ValueTuple<System.Int32,System.Int32>
position
ClearLastLine()โ Declaration
public static void ClearLastLine()
Copy Declaration
public static void Beep()
Copy Beep(Int32, Int32)โ Declaration
public static void Beep(int frequency, int duration)
Copy Parametersโ Type Name System.Int32
frequency System.Int32
duration
Clear()โ Declaration
public static void Clear()
Copy SetWindowSize(Int32, Int32)โ Declaration
public static void SetWindowSize(int width, int height)
Copy Parametersโ Type Name System.Int32
width System.Int32
height
SetCursorPosition(Int32, Int32)โ Declaration
public static void SetCursorPosition(int left, int top)
Copy Parametersโ Type Name System.Int32
left System.Int32
top
SetBufferSize(Int32, Int32)โ Declaration
public static void SetBufferSize(int width, int height)
Copy Parametersโ Type Name System.Int32
width System.Int32
height
ResetColor()โ Declaration
public static void ResetColor()
Copy Declaration
public static int Read()
Copy Returnsโ System.Int32
ReadLine()โ Declaration
public static string ReadLine()
Copy Returnsโ System.String
GetCursorPosition()โ Declaration
public static (int Left, int Top) GetCursorPosition()
Copy Returnsโ System.ValueTuple{System.Int32,System.Int32}
SetIn(TextReader)โ Declaration
public static void SetIn(TextReader textReader)
Copy Parametersโ Type Name System.IO.TextReader
textReader
SetOut(TextWriter)โ Declaration
public static void SetOut(TextWriter textWriter)
Copy Parametersโ Type Name System.IO.TextWriter
textWriter
SetError(TextWriter)โ Declaration
public static void SetError(TextWriter textWriter)
Copy Parametersโ Type Name System.IO.TextWriter
textWriter
CancelKeyPressโ Declaration
public static event ConsoleCancelEventHandler CancelKeyPress
Copy Event Typeโ System.ConsoleCancelEventHandler