try using --pretty option for formatting and to add new line you have to use %n . your command should look something like this :
git log --oneline --pretty=format:"%h %s%n"
in above code: %h is to show hash commit , %s is to show commit message and %n is new line.