Added support fpr log writter