A Torelli type problem for logarithmic bundles over projective varieties