Common Splunk Log Message Creation Utility Method
I'm trying to follow the Splunk method of logging information when I want
to log something. I'm passing in things like the type of layer that is
being called, the method, the class, the url path in the case of our rest
layer calls...etc. I want to come up with a common method to create the
String that goes in the LOG.error message. Maybe have 3 common methods one
for each layer (rest, service and dao since they will take a different
number of parameters). What is the best way to do this?
LOG.error("key=value, key=value, key=value, e);
No comments:
Post a Comment