Added support for splitting logs dynamically