ILog Interface |
Namespace: VirtualRadar.Interface
The ILog type exposes the following members.
Name | Description | |
---|---|---|
FileName |
Gets the full path and filename of the log file.
| |
Provider |
Gets or sets the provider that abstracts away the environment for the tests.
| |
Singleton |
Gets the single instance of the class that should be used throughout the application.
(Inherited from ISingletonT.) |
Name | Description | |
---|---|---|
GetContent |
Returns the content of the log as an array of lines, optionally truncated to the last so-many lines.
| |
Truncate |
Truncates the log file to the last nn kilobytes.
| |
WriteLine(String) |
Writes a line of text to the log file.
| |
WriteLine(String, Object) |
Writes a line of text to the log file.
|
ILog log = Factory.Singleton.Resolve<ILog>().Singleton;
log.WriteLine("This will be written to the program log");