Class Logging
Singleton logging instance class. Do not use console loggers with this class as it will interfere with Terminal.Gui screen output (i.e. use a file logger).
public static class Logging
- Inheritance
-
Logging
- Inherited Members
Remarks
Also contains the Terminal.Gui.Logging.Meter instance that should be used for internal metrics (iteration timing etc.).
Fields
- DrainInputStream
Metric for how long it takes to read all available input from the input stream - at which point input loop will sleep.
- IterationInvokesAndTimeouts
Metric for how long it took to do the 'timeouts and invokes' section of main loop.
- Redraws
Counter for when we redraw, helps detect situations e.g. where we are repainting entire UI every loop
- TotalIterationMetric
Metric for how long it takes each full iteration of the main loop to occur
Properties
- Logger
Logger, defaults to NullLogger (i.e. no logging). Set this to a file logger to enable logging of Terminal.Gui internals.
Methods
- Critical(string, string, string)
Logs a fatal/critical message including the class and method name.
- Debug(string, string, string)
Logs a debug message including the class and method name.
- Error(string, string, string)
Logs an error message including the class and method name.
- Information(string, string, string)
Logs an informational message including the class and method name.
- Trace(string, string, string)
Logs a trace/verbose message including the class and method name.
- Warning(string, string, string)
Logs a warning message including the class and method name.