NAnt SDK Documentation - v0.92 |

# NUnit2Task.GetListener Method

Gets a new EventListener to use for the unit tests.

[Visual Basic]
Overridable Protected Function GetListener( _
ByVal logWriter As LogWriter _
) As EventListener
[C#]
protected virtual EventListener GetListener(
LogWriter logWriter
);

#### Parameters

logWriter
  Log writer to send test output to.

#### Return Value

A new EventListener created with a new EventCollector that is initialized with logWriter.

#### See Also

NUnit2Task Class | NAnt.NUnit2.Tasks Namespace