Add log formatting option
add tests
Merge pull request #1 from brainss/formatOptions

Add "format" option