Creatinglog in functionality