Check if log exist before to open.
Get the last file log on directory. Check if id is valid.
Comply ref access syntax.