/**
* Adds a TLogRoute instance to the log router.
*
* @param TLogRoute $route
* @throws TInvalidDataTypeException if the route object is invalid
*/
public function addRoute($route)
{
if (!$route instanceof TLogRoute) {
throw new TInvalidDataTypeException('logrouter_routetype_invalid');
}
$this->_routes[] = $route;
$route->init(null);
}