}
private void logEvent(LogRecord record) {
// Add to the trace log if it's an explicit Trace log event or if this thread is currently tracing
String traceId = CougarLoggingUtils.getTraceId();
TraceLogRecord tlr = null;
if (record instanceof TraceLogRecord) {
tlr = (TraceLogRecord)record;
} else if (traceId != null) {
tlr = new TraceLogRecord(traceId, record.getMessage(), record.getThrown());
}
if (tlr != null) {
CougarLogger traceLogger = CougarLoggingUtils.getTraceLogger();
if (traceLogger != null) {