Separated log writing function & initiate LickLog struct