split log helper functions into logs.py