Logging from within Ruby Filter

I have solved my Problem with a online ruby interpreter and a self written mock for event

but my question still stands, is it possible to log to the logstash log file from within the ruby filter code?