private void log(int level, Object message, Throwable t) {
String msg = (message == null) ? "NULL" : message.toString();
if (logger instanceof LocationAwareLogger) {
LocationAwareLogger l = (LocationAwareLogger) logger;
l.log(null, FQCN, level, msg, null, t);
} else {
switch (level) {
case TRACE_INT:
logger.trace(msg, t);
break;