[Add] Method and Options to show BFGS logs.

Output trace log of BFGS optimization to console or other streams by
setting some option.