In most countries the law doesn't say you have to log everything about your users, but it does say that if you log it and the police ask for it then you have to give the data to them.
I think you mean if a court asks for it. And they have to ask for something you actually have
I think you mean if a court asks for it. And they have to ask for something you actually have