very basic log example based on pmemobj