# Enable logging for rspec on Logstash plugin

**URL:** <https://discuss.elastic.co/t/enable-logging-for-rspec-on-logstash-plugin/378034>\
**Category:** Logstash\
**Created:** [May 12, 2025, 10:28am UTC](https://discuss.elastic.co/t/enable-logging-for-rspec-on-logstash-plugin/378034 "2025-05-12T10:28:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frans-wtax](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@frans-wtax](https://discuss.elastic.co/u/frans-wtax)\
**Post date:** [May 12, 2025, 10:28am UTC](https://discuss.elastic.co/t/enable-logging-for-rspec-on-logstash-plugin/378034/1 "2025-05-12T10:28:25Z")

</div>

I'm making some changes to the logstash-input-salesforce plugin and would like to be able to see the logging generated by `@logger.debug` statements when running rspec tests.  
Currently, when rspec starts, it prints `Sending Logstash logs to null which is now configured via log4j2.properties` , but it's not obvious to me how to change that and get it to send Logstash logs to a file, for example.

Any ideas? Do I create a `log4j2.properties` somewhere? If so, where?

I'm very new to both Ruby and Logstash plugin development so this might be very obvious to a more experienced dev.

Thanks,  
Frans
