Logarithm laws for flows on homogeneous spaces