I'm not familar with other loggers, but for SLF4J, there is another log interface named LocationAwareLogger in package org.slf4j.spi, this interface helps to integration with logging systems capable of extracting location information.
I hope you can involve this interface in HA-JDBC's SLF4JLogger.
When logging, make a jugement that if logger is an instance of LocationAwareLogger, if true, then use the LocationAwareLogger.log, set fqcn=SLF4JLogger.class.getName(). And more, you may have to override the AbstractLogger's log methods in SLF4JLogger, or you can set fqcn=AbstractLogger.class.getName() when the log methods in AbstractLogger is used.
Can you make this improvement change into HA-JDBC?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not familar with other loggers, but for SLF4J, there is another log interface named LocationAwareLogger in package org.slf4j.spi, this interface helps to integration with logging systems capable of extracting location information.
I hope you can involve this interface in HA-JDBC's SLF4JLogger.
When logging, make a jugement that if logger is an instance of LocationAwareLogger, if true, then use the LocationAwareLogger.log, set fqcn=SLF4JLogger.class.getName(). And more, you may have to override the AbstractLogger's log methods in SLF4JLogger, or you can set fqcn=AbstractLogger.class.getName() when the log methods in AbstractLogger is used.
Can you make this improvement change into HA-JDBC?
Thanks for pointing this out. I'll look into it.