add cmd, json and yaml methods for log library