Logger Class

Definition

Enables users to log/write traces from unit tests for diagnostics.

C++
public ref class Logger
Inheritance
Logger

Constructors

Methods

LogMessage(String, Object[])

API for test writer to call to Log messages.

Events

OnLogMessage

Event to listen. Raised when unit test writer writes some message. Mainly to consume by adapter.

Applies to

Produkt Wersje
MSTest.TestFramework 1.1.18, 1.2.1, 1.3.2, 1.4.0, 2.2.0, 2.1.2, 2.2.10, 3.0.4, 3.1.1, 3.2.2, 3.3.1, 3.4.3, 3.5.1, 3.6.4, 3.7.3, 3.8.0