java_gen: make of_bsn_log a string

Reviewer: @ronaldchl @rlane