Has anyone ever thought about this or perhaps I’m going about this the wrong way?
For any CFC that has database interaction, I want a logger available to trap information but ONLY appear in that one appender…I don’t my my sql log entries littered about in other appenders. However, I have database interaction in models and module / models all over the place AND I really want to automatically reference the cfc path in the log entry. What I do now is create a category called SQL, inject that logger via “logbox:logger:SQL” but what I really want to do is “logbox:logger:SQL:{this}” so that the CFC is automatically referenced. Now, I have to prepend my text description of the log information with getMetadata(this).name