It prints to the console like the following (note that you need to pass revision range):
bash-3.2$ ./release_notes.sh REL9_4_1200..HEAD | head -5
Alexis Meneses (7): Do not pull a concrete implementation of slf4j in maven pom. Fixes #251 PR #252 (6c2848c) Declare all maven dependencies as optional in the pom PR #252 (1d02876) Automatically load maven-ant-tasks to remove the need of "-lib lib" when building the project using ant PR #253 (7e80fca) ... Vladimir