create_treelog function

Create a treelog object