How can I get automatic in logging?

Thanks;D