added test for logger.
fixed  uninitialized GLattrib.
check callback before calling.