(#22662) create a logstash_event logger

This commit should address the issues with the previous commit
 such as accessing private data from another class.O