updated to new foundation log api