What is the use case for manual error reporting in logging libraries?

Could you tell me what library you’re using and an example of a tag you have in mind? I’m curious to check if it’s an inherent gap in UX, or perhaps just the way a certain library context is designed.