Logging from rhtml

How can I write to log file from my rhtml.

here’s one way,

<% logger.info ‘my message’ %>