add external log support