Subscribing to log messages in Solace Cloud
Hi Solace Community,
I was recently working on a task which required me to look at log messages using Solace Cloud. Because Solace Cloud is a managed service, I wasn't sure whether these logs were exposed to me or not and if they were, how detailed they would be. With help from my teammates, I eventually figured out how to subscribe to these logs so I decided I would write a quick post about it in case someone else is interested in them in future.
It turns out that getting access to these logs is as easy as just subscribing to a topic. Check out this incredibly helpful documentation that highlights different topics that your application can subscribe to and get log messages.
For my specific use-case, I just wanted to look at some INFO level log messages so I subscribed to:
#LOG/INFO/>. To subscribe to ALL log messages, I could have just subscribed to
#LOG and that would have given me INFO, WARNING and ERROR log messages.
Hope this was useful!