How do you log from within your custom class?

Hi
I know i can use loggger.info(“info”) to output a message to the log
file from within ActionController classes. HOw do I do it from my own
custom class?

Thanks
Chris

Try

RAILS_DEFAULT_LOGGER.info

Hammed

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs