Split LogDocGenerator class to log.py