added time period support
logging update