IFR is simply Instrument Flight Rules. if you mean IMC then that is a different matter altogether. IMC day or night you can log that under certain conditions which are in the Rules somewhere. Basically it is an honesty system because there is no means of audit of your logged instrument flight time.