Merge pull request #502 from aesophor/encapsulate-log-cleaner

src/logging.cc: encapsulate log cleaner, match logfile with <base_filename_><date>-<time>.<pid>