Write log message from plugin
I need to debug a plugin that's not working. Since I cannot debug it because it's on a remote production server, I'd like to add some log message that will be printed on production.log.
Since I'm new to ruby, what's the command that I must use in the plugin in order to write a log message?
RE: Write log message from plugin - Added by Akiko Takano about 2 years ago
Hi. You can log by just adding logger.info "your message" not only Redmine itself but also plugin's code.
def your_method logger.info 'your message goes here' # or Rails.logger.info 'whatever' end
RE: Write log message from plugin - Added by Daniele Lupo about 2 years ago
Thanks, this is what I needed.