Class LoggedConsole
This class is designed to be an abstraction to the system console.
Messages normally written to the System.Console Out and Error are additionally logged in this class.
The logging appenders filter out messages for this class and print them in a clean format.
Inheritance
LoggedConsole
Assembly: Acoustics.Shared.dll
Syntax
public static class LoggedConsole
Fields
|
Improve this Doc
View Source
Log
Declaration
public static readonly ILog Log
Field Value
Type |
Description |
log4net.ILog |
|
Properties
|
Improve this Doc
View Source
IsInteractive
Declaration
public static bool IsInteractive { get; }
Property Value
|
Improve this Doc
View Source
LogFolder
Declaration
public static string LogFolder { get; }
Property Value
|
Improve this Doc
View Source
SuppressInteractive
Declaration
public static bool SuppressInteractive { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Prompt(String, Boolean, Nullable<TimeSpan>)
Declaration
public static string Prompt(string prompt, bool forPassword = false, TimeSpan? timeout = default(TimeSpan? ))
Parameters
Returns
|
Improve this Doc
View Source
Write(String)
Declaration
public static void Write(string str)
Parameters
Type |
Name |
Description |
String |
str |
|
|
Improve this Doc
View Source
Write(String, Object[])
Declaration
public static void Write(string format, params object[] args)
Parameters
|
Improve this Doc
View Source
WriteErrorLine(String)
Declaration
public static void WriteErrorLine(string str)
Parameters
Type |
Name |
Description |
String |
str |
|
|
Improve this Doc
View Source
WriteErrorLine(String, Object[])
Declaration
public static void WriteErrorLine(string format, params object[] args)
Parameters
|
Improve this Doc
View Source
WriteFatalLine(String)
Declaration
public static void WriteFatalLine(string str)
Parameters
Type |
Name |
Description |
String |
str |
|
|
Improve this Doc
View Source
WriteFatalLine(String, Exception)
Declaration
public static void WriteFatalLine(string str, Exception exception)
Parameters
|
Improve this Doc
View Source
WriteLine()
Declaration
public static void WriteLine()
|
Improve this Doc
View Source
WriteLine(Object)
Declaration
public static void WriteLine(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
|
Improve this Doc
View Source
WriteLine(String)
Declaration
public static void WriteLine(string str)
Parameters
Type |
Name |
Description |
String |
str |
|
|
Improve this Doc
View Source
WriteLine(String, Object[])
Declaration
public static void WriteLine(string format, params object[] args)
Parameters
|
Improve this Doc
View Source
WriteSuccessLine(String)
Declaration
public static void WriteSuccessLine(string str)
Parameters
Type |
Name |
Description |
String |
str |
|
|
Improve this Doc
View Source
WriteSuccessLine(String, Object[])
Declaration
public static void WriteSuccessLine(string format, params object[] args)
Parameters
|
Improve this Doc
View Source
WriteWaitingLine<T>(Task<T>, String)
Declaration
public static void WriteWaitingLine<T>(Task<T> task, string message = null)
Parameters
Type Parameters
|
Improve this Doc
View Source
WriteWaitingLineAndWait<T>(Task<T>, String)
Declaration
public static async Task<T> WriteWaitingLineAndWait<T>(Task<T> task, string message = null)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
WriteWarnLine(String, Object[])
Declaration
public static void WriteWarnLine(string format, params object[] args)
Parameters